Skip to content

Commit b0421ff

Browse files
committed
fix: next adaptations
1 parent 6f135ce commit b0421ff

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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",

examples/next-app-router/src/app/theme-switcher/layout.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ import { Header } from '@/components/Header';
66
import ThemeToggle from '@/components/ThemeToggle';
77
import { 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

0 commit comments

Comments
 (0)