-
Notifications
You must be signed in to change notification settings - Fork 430
chore(nextjs): Update middleware check for proxy usage (#7269) #7706
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Robert Soriano <sorianorobertc@gmail.com>
🦋 Changeset detectedLatest commit: 6ea99af The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types 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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
📝 WalkthroughWalkthroughAdds Next.js version detection and a new sdk-versions module exposing isNext13, isNextWithUnstableServerActions, isNext16OrHigher, and middlewareFileReference. Refactors middleware location checks and error messages to account for proxy.(ts|js) in Next.js 16+ while preserving prior middleware behavior for earlier versions. Updates auth error helpers to accept a parameterized file reference. Tests updated to detect Next.js major version and assert version-appropriate messages; new unit tests cover sdk-versions logic. Possibly related PRsRelated changes add proxy.(ts|js) support alongside middleware.(ts|js) for Next.js 16+. 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
Comment |
Description
Backports #7269
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
Summary by CodeRabbit
New Features
Bug Fixes
Tests
Chores
✏️ Tip: You can customize this high-level summary in your review settings.