File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
examples/next-app-router/src/app/theme-switcher Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1010 "flutter:clean" : " rm -rf public/flutter/authenticator" ,
1111 "flutter:copy" : " cp -r ./flutter/authenticator/build/web public/flutter/authenticator" ,
1212 "prebuild" : " yarn build:cssvars-table && yarn build:props-tables" ,
13- "build" : " NODE_OPTIONS=\" --max-old-space-size=4096\" next build" ,
13+ "build" : " NODE_OPTIONS=\" --max-old-space-size=4096\" next build --webpack --no-turbopack " ,
1414 "build:cssvars-table" : " node --require esbuild-register ./scripts/generate-cssvars-table-data.ts" ,
1515 "build:props-tables" : " node --require esbuild-register ./scripts/generate-props-tables-data.ts" ,
1616 "clean" : " rimraf node_modules .next && yarn flutter:clean" ,
Original file line number Diff line number Diff line change @@ -6,8 +6,12 @@ import { Header } from '@/components/Header';
66import ThemeToggle from '@/components/ThemeToggle' ;
77import { cookies } from 'next/headers' ;
88
9- export default function Layout ( { children } : { children : React . ReactNode } ) {
10- const cookieStore = cookies ( ) ;
9+ export default async function Layout ( {
10+ children,
11+ } : {
12+ children : React . ReactNode ;
13+ } ) {
14+ const cookieStore = await cookies ( ) ;
1115 const colorMode = ( cookieStore . get ( 'colorMode' ) ?. value ??
1216 'dark' ) as ColorMode ;
1317
You can’t perform that action at this time.
0 commit comments