Skip to content

Commit ea4d28f

Browse files
committed
chore: update API to v15 next.js
1 parent db1f806 commit ea4d28f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/theming/src/app/layout.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export const metadata = {
88
description: 'Generated by Next.js',
99
}
1010

11-
export default function RootLayout({children}: {children: React.ReactNode}) {
12-
const cookieStore = cookies()
11+
export default async function RootLayout({children}: {children: React.ReactNode}) {
12+
const cookieStore = await cookies()
1313
const colorPreferenceCookie = cookieStore.get('color-preference')
1414
const colorMode = getColorMode(colorPreferenceCookie?.value)
1515

0 commit comments

Comments
 (0)