Rework client OIDC env vars: rename to VITE_OIDC_*, add committed .env

Renames VITE_AUTH_* to VITE_OIDC_* to match the stack convention.
Adds a dedicated VITE_OIDC_POST_LOGOUT_REDIRECT_URI instead of deriving
it from the redirect URI via string replace. Switches from Dockerfile
ARG/ENV to a committed src/Budget.Client/.env so Vite picks up
production values at build time without needing build-arg overrides.
.env.local is gitignored for localhost dev overrides.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Spencer Twaddle
2026-05-02 15:57:52 -05:00
parent cd42a8ec2c
commit 4dc5ad4910
5 changed files with 14 additions and 17 deletions
+2 -4
View File
@@ -5,7 +5,5 @@ POSTGRES_DB=budget
POSTGRES_USER=budget
POSTGRES_PASSWORD=changeme
# Client (baked into Vite build)
VITE_AUTH_AUTHORITY=https://auth.stwaddle.com
VITE_AUTH_CLIENT_ID=budget-client
VITE_AUTH_REDIRECT_URI=https://budget.stwaddle.com/callback
# Note: client OIDC values live in src/Budget.Client/.env (committed).
# Override locally in src/Budget.Client/.env.local (gitignored).