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>