diff --git a/index.html b/index.html index cbfd4813..46dbb803 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ window.__APP_CONFIG__ overrides build-time VITE_APP_* values. See src/config/env.ts for the resolution order. --> - +
diff --git a/public/env.js b/public/env.js new file mode 100644 index 00000000..9b799b1b --- /dev/null +++ b/public/env.js @@ -0,0 +1,6 @@ +// Stub env file for local dev and static build. +// In Docker, docker/entrypoint.sh overwrites /usr/share/nginx/html/env.js +// with values from APP_* environment variables at container start. +// In dev/build without Docker, this empty stub keeps window.__APP_CONFIG__ +// undefined so src/config/env.ts falls back to VITE_APP_* or defaults. +window.__APP_CONFIG__ = window.__APP_CONFIG__ || undefined;