diff --git a/frontend/app/(auth)/layout.tsx b/frontend/app/(auth)/layout.tsx index 215e41d..aec9849 100644 --- a/frontend/app/(auth)/layout.tsx +++ b/frontend/app/(auth)/layout.tsx @@ -1,4 +1,10 @@ // File: app/(auth)/layout.tsx + +// Force dynamic rendering for all pages under (auth) route group. +// QNAP overlayfs cannot handle the .segments/! directories +// that Next.js 16 creates during static page generation. +export const dynamic = "force-dynamic"; + export default function AuthLayout({ children, }: { @@ -10,4 +16,4 @@ export default function AuthLayout({ {children} ); -} \ No newline at end of file +} diff --git a/frontend/app/(dashboard)/layout.tsx b/frontend/app/(dashboard)/layout.tsx index 6c6ea72..1b24152 100644 --- a/frontend/app/(dashboard)/layout.tsx +++ b/frontend/app/(dashboard)/layout.tsx @@ -1,6 +1,11 @@ import { Header } from "@/components/layout/header"; import { Sidebar } from "@/components/layout/sidebar"; +// Force dynamic rendering for all pages under (dashboard) route group. +// QNAP overlayfs cannot handle the .segments/! directories +// that Next.js 16 creates during static page generation. +export const dynamic = "force-dynamic"; + export default function DashboardLayout({ children, }: {