-
Notifications
You must be signed in to change notification settings - Fork 406
feat(nextjs): Next.js@15 compatibility #4366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 9b8cccd The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Co-authored-by: Bryce Kalow <bryce@clerk.dev>
|
Is there anything to be done? We could help to push it on main as the Next.JS just released v15 |
Co-authored-by: Jacek Radko <jacekradko@gmail.com>
Co-authored-by: Jacek <jacek@clerk.dev>
|
!allow-major |
brkalow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
|
I have tested the canary for this with export default clerkMiddleware(async (auth, request) => {
const { sessionClaims } = await auth() // auth() is not a Promise over here and causes TS and eslint to complain
// ...
if (!isPublicRoute(request)) {
try { await auth.protect() } // works as expected
catch (e) { unstable_rethrow(e) }
}
})Do you want me to open a separate issue to track this? |
|
@ChristianIvicevic Thanks for reporting this! It was fixed in |
Co-authored-by: Bryce Kalow <bryce@clerk.dev> Co-authored-by: panteliselef <pantelis@clerk.dev>
Description
Next.js@15 compatibility integration branch
Checklist
npm testruns as expected.npm run buildruns as expected.Type of change