Dashboard pages require authentication and include client components with hooks that fail during static prerendering on Linux/Docker. Setting force-dynamic in the layout prevents build-time prerendering across the entire authenticated dashboard. https://claude.ai/code/session_014126WHVRT8mftmqkU6dajG
12 lines
261 B
TypeScript
12 lines
261 B
TypeScript
import { DashboardShell } from "~/components/layout/dashboard-shell";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export default function DashboardLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return <DashboardShell>{children}</DashboardShell>;
|
|
}
|