-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Root catch-all custom-route should match the root itself #14930
Comments
It seems it's necessary to do this:
Still discussing in this thread: |
- workaround based on this current bug: vercel/next.js#14930
- workaround based on this current bug: vercel/next.js#14930
I believe another, maybe more readable alternative is |
Upstream pillarjs/path-to-regexp#228 (comment) has been closed with a recommendation that consumers apply a fix themselves:
What can we expect from NextJS in this case? |
Vercel seems to have issues with interpretting the rewrites correctly so the trailing slash needs to be explicitly added: see vercel/next.js#14930 (comment)
As described in this bug here vercel/next.js#14930
As described in this bug here vercel/next.js#14930
Closing as stale |
A catch-all rewrite e.g.
{ source: '/:path*', destination: '/somewhere' }
should match when/
is requested,after this is corrected we should investigate disabling.strict: true
for custom-routesWe also need to make sure this works on Vercel.
The text was updated successfully, but these errors were encountered: