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
When experimental.concurrentFeatures is enabled, any configured rewrites within next.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 when concurrentFeatures isn't enabled.
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?
next@12.0.5-canary.13
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: