Skip to content

Fix Vite client build-time env vars#204

Merged
macterra merged 1 commit intomainfrom
203-vite-build-args
Mar 14, 2026
Merged

Fix Vite client build-time env vars#204
macterra merged 1 commit intomainfrom
203-vite-build-args

Conversation

@macterra
Copy link
Collaborator

@macterra macterra commented Mar 14, 2026

Summary

  • Move VITE_*_URL from compose environment: to build.args: so they're baked into the Vite bundle at build time
  • Reorder Dockerfiles to set build args before npm run build
  • Give drawbridge-client its own image tag (ghcr.io/archetech/drawbridge-client)

Test plan

  • Rebuild gatekeeper-client, verify it connects to gatekeeper on port 4224
  • Rebuild drawbridge-client, verify it connects to drawbridge on port 4222 and shows Lightning tab
  • Rebuild keymaster-client, verify it connects to keymaster on port 4226

Closes #203

🤖 Generated with Claude Code

Vite inlines import.meta.env at build time, so VITE_*_URL set via
compose environment had no effect. Move to build args and reorder
Dockerfiles so the URL is available during npm run build. Give
drawbridge-client its own image tag since it bakes a different URL.

Closes #203

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@macterra macterra merged commit ed8b624 into main Mar 14, 2026
19 of 20 checks passed
@macterra macterra deleted the 203-vite-build-args branch March 14, 2026 03:06
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.

Fix Vite client build-time env vars and drawbridge-client image

1 participant