fix(web): force dynamic rendering for runtime env injection
All checks were successful
ci/woodpecker/push/web Pipeline was successful
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user