-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Rewrites don't seem to work when concurrentFeatures is enabled #32044
Comments
Possibly related issue: #31506 |
This experimental feature has been removed, so we're gonna close this one out. Happy to talk about options for how to do rewrites with edge runtime once we get further along towards general purpose edge functions which is on the way as you have noticed! It is something we are thinking about and will provide support for. You may also be able to use middleware as a temporary workaround? |
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?
[email protected]
What version of Node.js are you using?
v14.18.0
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
next start
Describe the Bug
When
experimental.concurrentFeatures
is enabled, any configuredrewrites
withinnext.config.js
no longer function as they do without that feature enabled.In development mode, the page will hang and in production the error / 404 page will be shown instead.
Expected Behavior
Rewrites configured within
next.config.js
should work as they do whenconcurrentFeatures
isn't enabled.To Reproduce
Clone this repo: https://github.com/hamlim/concurrent-features-rewrites-bug
Run:
yarn
yarn build
yarn start
Visit localhost:3000/foo, see error page
The text was updated successfully, but these errors were encountered: