Skip to content

Commit 620bcbf

Browse files
committed
fix(build): fix js error by updating next and fix header usage
1 parent 204ba1e commit 620bcbf

3 files changed

Lines changed: 68 additions & 74 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">

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)