-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Middleware does not run when concurrentFeatures is enabled #31803
Comments
Just won't work in the main ./pages folder. When added on an api route or /api directly, or in an sub-folder of ./pages it runs. e.g. Also in 12.0.5-canary.10 |
|
Resolved with next 12.2 |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
12.0.5-canary.9
What version of Node.js are you using?
14.18.1
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
Vercel
Describe the Bug
Middleware does not run and redirects user.
Expected Behavior
Middleware should redirect to login page.
To Reproduce
_middleware.tsx
The text was updated successfully, but these errors were encountered: