From 3320b552ce2eac7f26e226c008f2061a2b9fb810 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 20 Mar 2026 15:54:49 +0700 Subject: [PATCH] 260320:1554 Refactor Overrall #08-2 Fix: pnpm frontend deploy --- frontend/app/(auth)/layout.tsx | 8 +++++++- frontend/app/(dashboard)/layout.tsx | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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, }: {