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>
This commit is contained in:
2026-02-21 21:51:04 -06:00
parent 1b66417be5
commit f42d1fb83f

View File

@@ -5,6 +5,8 @@ import { ErrorBoundary } from "@/components/error-boundary";
import { ThemeProvider } from "@/providers/ThemeProvider";
import "./globals.css";
export const dynamic = "force-dynamic";
export const metadata: Metadata = {
title: "Mosaic Stack",
description: "Mosaic Stack Web Application",