Env Example Scrub¶
Motivation¶
Committed example environment files must not expose real Azure subscription,
tenant, or app registration identifiers. Vite also bakes VITE_* values into
the frontend bundle, so production frontend builds need an explicit injection
path that does not rely on committed real values.
User-Facing Change¶
.env.exampleandweb/.env.productionnow contain placeholders only.- Local developers keep real values in ignored
.env/web/.env.localfiles. - Production frontend image builds receive the tenant and API client id from
azd/postprovision.shbuild arguments.
API/IaC Diff Summary¶
- No API route changes.
- No Bicep resource changes.
web/Dockerfileaccepts Vite build args and exports them fornpm run build.scripts/dev/postprovision.shpasses frontend MSAL build args fromazdenv.
Validation Evidence¶
grepscan confirmed the tracked env files no longer contain the previous real tenant, subscription, or app registration ids.get_errorsreported no errors for the edited env, Dockerfile, shell, and change-note files.