Skip to content

fix(dev): print the Traefik URL instead of the container address in dev logs - #54

Merged
suiramdev merged 1 commit into
devfrom
fix/dev-stack-public-urls
Sep 24, 2026
Merged

suiramdev merged 1 commit into
devfrom
fix/dev-stack-public-urls

Conversation

@suiramdev

Copy link
Copy Markdown
Owner

Summary

Under bun run dev:up, the web and docs dev servers now print their Traefik address (http://web.<slug>.freenary.localhost/) in place of Vite's in-container localhost:3001 and 172.x lines. The API server logs BETTER_AUTH_URL in place of a hard-coded localhost. Start with the small printPublicUrl plugin in the two vite.config.ts files.

Motivation

Drawbacks

  • One new dev-only variable, DEV_PUBLIC_URL, set by docker-compose.dev.yml.
  • The plugin is duplicated in both Vite configs, because apps/fumadocs imports no workspace package.
  • The production server log now shows the configured BETTER_AUTH_URL, which is public anyway.

Prior art

  • Overriding server.printUrls in configureServer is the documented Vite hook other plugins use (for example, QR-code plugins).
  • Rejected: reprinting the banner from scripts/dev.ts once the stack is up. up --watch blocks, so it would need log parsing.

Notes

  • Visual change: none, logs only.
  • Tests: none added. Checked by hand. dev:up logs show the three Traefik URLs, and all answer through Traefik (web 307, docs 200, server 200). A local vite dev without the variable still prints localhost.
  • Docs: contributing/local-stack.mdx gets one note. self-hosting/configuration.mdx is regenerated by env:sync.
  • Gates: env:check, docs:check, oxlint and oxfmt pass. The AGENTS.md reviewer gate was not run by this agent.
  • No migration and no breaking change.

@coderabbitai

coderabbitai Bot commented Sep 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 7df690a0-c977-456c-ab6f-9cea466125dc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@suiramdev
suiramdev enabled auto-merge September 24, 2026 14:53
@suiramdev
suiramdev merged commit 23d9b09 into dev Sep 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant