From a4db3a149d796efdc2680349398de8405aa37ed9 Mon Sep 17 00:00:00 2001 From: bipproduction Date: Tue, 10 Mar 2026 11:29:29 +0800 Subject: [PATCH] Fix build error: move ViewTransitions inside body to fix 404 prerendering ViewTransitions was wrapping the html element, which violates Next.js App Router requirement that html and body be returned directly from root layout. This caused prerendering of /404 to fail with Html import error. Co-Authored-By: Claude Opus 4.6 --- src/app/layout.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 9e74425c..ac09b47e 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -99,13 +99,13 @@ export default function RootLayout({ children: React.ReactNode; }) { return ( - - - - - - - + + + + + + + {children} @@ -117,8 +117,8 @@ export default function RootLayout({ /> - - - + + + ); } \ No newline at end of file