fix(dashboard): read the docs URL at runtime #366

Merged
sharang merged 1 commits from fix/docs-url-runtime into main 2026-09-25 07:54:08 +00:00
Owner

The dashboard read DOCS_URL at build time (option_env!). The value orca-platform sets per environment was therefore ignored: staging and production share one image, and production's https://docs.breakpilot.com/pruefwerk/ never took effect. The docs link is now resolved at runtime, the same way as PORTAL_URL (#365).

Change

  • Server side: reads DOCS_URL at startup, with /docs/ as the default (the docs container on the dashboard host). check_auth passes it to the shell in AuthInfo.docs_url (#[serde(default)]), logged in or not.
  • Sidebar: uses that value, so the server render and hydration agree.
  • Dockerfile.dashboard: the DOCS_URL build argument is gone.
  • server.rs: one env_setting helper now reads the three optional settings (MCP_HEALTH_URL, PORTAL_URL, DOCS_URL), where each used to repeat the same trim/blank check.
  • .env.example: documents DOCS_URL.

The values configured today all answer 200: https://pruefwerk-stage.breakpilot.com/docs/ on staging and https://docs.breakpilot.com/pruefwerk/ on production.

Checked

  • cargo fmt --all --check.
  • clippy with the CI flags for the dashboard (server, web) and compliance-core.
  • Dashboard tests: 47 for server and 31 for web, including a new one for blank settings.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

The dashboard read `DOCS_URL` at build time (`option_env!`). The value orca-platform sets per environment was therefore ignored: staging and production share one image, and production's `https://docs.breakpilot.com/pruefwerk/` never took effect. The docs link is now resolved at runtime, the same way as `PORTAL_URL` (#365). ## Change - **Server side:** reads `DOCS_URL` at startup, with `/docs/` as the default (the docs container on the dashboard host). `check_auth` passes it to the shell in `AuthInfo.docs_url` (`#[serde(default)]`), logged in or not. - **Sidebar:** uses that value, so the server render and hydration agree. - **`Dockerfile.dashboard`:** the `DOCS_URL` build argument is gone. - **`server.rs`:** one `env_setting` helper now reads the three optional settings (`MCP_HEALTH_URL`, `PORTAL_URL`, `DOCS_URL`), where each used to repeat the same trim/blank check. - **`.env.example`:** documents `DOCS_URL`. The values configured today all answer 200: `https://pruefwerk-stage.breakpilot.com/docs/` on staging and `https://docs.breakpilot.com/pruefwerk/` on production. ## Checked - `cargo fmt --all --check`. - clippy with the CI flags for the dashboard (`server`, `web`) and compliance-core. - Dashboard tests: 47 for server and 31 for web, including a new one for blank settings. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-09-25 07:47:08 +00:00
fix(dashboard): read the docs URL at runtime
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 6m31s
4cf7efd516
DOCS_URL was read at build time, so the per-environment value in the
orca service files was ignored (staging and production share an
image). The server now reads it at startup (default /docs/) and hands
it to the sidebar with the auth info, like PORTAL_URL.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit 79b8bef8ba into main 2026-09-25 07:54:08 +00:00
Sign in to join this conversation.