-
Notifications
You must be signed in to change notification settings - Fork 280
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
feat(nextjs): Next.js@15 compatibility #4366
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 <[email protected]>
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 <[email protected]>
Co-authored-by: Jacek <[email protected]>
!allow-major |
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 |
Description
Next.js@15 compatibility integration branch
Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change