fix(web): force dynamic rendering for runtime env injection #437

Merged
jason.woltje merged 1 commits from fix/runtime-env-dynamic into main 2026-02-22 03:54:13 +00:00

1 Commits

Author SHA1 Message Date
f42d1fb83f fix(web): force dynamic rendering for runtime env injection
All checks were successful
ci/woodpecker/push/web Pipeline was successful
Next.js pre-renders the root layout at build time, causing
process.env reads in runtimeEnvScript() to capture CI build-arg
values instead of Docker runtime env vars. Adding force-dynamic
ensures the layout renders per-request so container env vars
(like NEXT_PUBLIC_API_URL) are read at runtime.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 21:51:04 -06:00