feat(nextjs): Update middleware references to proxy for Next.js 16#7705
feat(nextjs): Update middleware references to proxy for Next.js 16#7705
Conversation
…mpatibility Align terminology with Next.js 16 which renamed Middleware to Proxy. This includes renaming middleware.ts files to proxy.ts and updating all internal references and error messages. The clerkMiddleware() function name remains unchanged. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
📝 WalkthroughWalkthroughThe changes rename references from "middleware" to "proxy" across test files and source code. This includes test scenario descriptions, file path references, error messages, function names, and internal helper methods. File names are updated from middleware-location.js to proxy-location.js, function names change from suggestMiddlewareLocation to suggestProxyLocation, and internal helpers change from checkMiddlewareLocation to checkProxyLocation. Path assertions and error messages now reference proxy.ts instead of middleware.ts. The refactoring affects authentication setup, error handling, and file location detection logic throughout the Next.js integration. 🚥 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. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
@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: |
Description
Align terminology with Next.js 16 which renamed Middleware to Proxy. This includes renaming middleware.ts files to proxy.ts and updating all internal references and error messages throughout the codebase. The
clerkMiddleware()function name remains unchanged.Type of change
Summary by CodeRabbit
Documentation
Refactor
Tests
✏️ Tip: You can customize this high-level summary in your review settings.