Skip to content

Commit

Permalink
feat: Add Next.js 15 to peer dependencies (#1443)
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn authored Oct 22, 2024
1 parent 1a0f05d commit 4cb22bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/next-intl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"use-intl": "workspace:^"
},
"peerDependencies": {
"next": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0",
"next": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {getCachedRequestLocale} from './RequestLocaleCache';
// With https://github.com/vercel/next.js/pull/68812, the API became async.
// This file can be removed once we remove the legacy navigation APIs.
function getHeaders() {
return headers();
return headers() as unknown as Awaited<ReturnType<typeof headers>>;
}

function getLocaleFromHeaderImpl() {
Expand Down

0 comments on commit 4cb22bb

Please sign in to comment.