Skip to content

Commit f5c4528

Browse files
committed
fix(build): fix js error by updating next and fix header usage
1 parent 240b024 commit f5c4528

4 files changed

Lines changed: 69 additions & 75 deletions

File tree

app/layout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ import { ORGANISATION_MARKUP } from './org-markup';
1515

1616
dayjs.locale('fr');
1717

18-
export default function AppLayout({ children }: { children: ReactNode }) {
19-
const nonce = headers().get('x-nonce');
18+
export default async function AppLayout({ children }: { children: ReactNode }) {
19+
const header = await headers();
20+
const nonce = header.get('x-nonce');
2021

2122
return (
2223
<html lang="fr-FR">

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"dayjs": "^1.11.13",
2222
"lodash": "^4.17.21",
2323
"motion": "^10.18.0",
24-
"next": "14.2.23",
24+
"next": "15.2.2",
2525
"normalize.css": "8.0.1",
2626
"react": "19.0.0",
2727
"react-dom": "19.0.0",

pnpm-lock.yaml

Lines changed: 64 additions & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)