feat(web): externalize telemetry URL via environment variables
Replace the hardcoded Nginx proxy configuration with a dynamic environment variable approach. This allows the telemetry dashboard to be loaded via a public URL instead of relying on a local Tailscale proxy. - Add `VITE_TELEMETRY_URL` build argument to Dockerfile - Pass `VITE_TELEMETRY_URL` through GitHub Actions deployment workflow - Remove `/telemetry/` location block from nginx.conf - Update `TelemetryPage` to use the new environment variable and improve iframe loading state management
This commit is contained in:
@@ -11,6 +11,8 @@ COPY packages/shared packages/shared
|
||||
COPY apps/web apps/web
|
||||
ARG VITE_API_BASE_URL
|
||||
ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
|
||||
ARG VITE_TELEMETRY_URL
|
||||
ENV VITE_TELEMETRY_URL=$VITE_TELEMETRY_URL
|
||||
RUN bun run --cwd packages/shared build
|
||||
RUN bun run --cwd apps/web build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user