You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting the matcher property of a middleware to an empty array cause the error message "Invalid middleware found" to be displayed and the development server to crash.
This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you.
This issue has been automatically closed due to two years of inactivity. If you’re still experiencing a similar problem or have additional details to share, please open a new issue following our current issue template. Your updated report helps us investigate and address concerns more efficiently. Thank you for your understanding!
Link to the code that reproduces this issue
https://github.com/masakinihirota/middleware-app
To Reproduce
Setting the matcher property of a middleware to an empty array cause the error message "Invalid middleware found" to be displayed and the development server to crash.
matcher: ['/about/:path*', '/another/:path*'],
↓ changed
matcher: [''],
Current vs. Expected behavior
Avoid crashing the development server
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure, Middleware / Edge (API routes, runtime)
Additional context
No response
The text was updated successfully, but these errors were encountered: