Skip to content
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

Closed
hamlim opened this issue Dec 2, 2021 · 3 comments
Closed

Rewrites don't seem to work when concurrentFeatures is enabled #32044

hamlim opened this issue Dec 2, 2021 · 3 comments

Comments

@hamlim
Copy link
Contributor

hamlim commented Dec 2, 2021

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 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.

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

@hamlim hamlim added the bug Issue was opened via the bug report template. label Dec 2, 2021
@hamlim
Copy link
Contributor Author

hamlim commented Dec 2, 2021

Possibly related issue: #31506

@balazsorban44 balazsorban44 added area: Concurrent Features and removed bug Issue was opened via the bug report template. area: experimental labels Dec 3, 2021
@jescalan
Copy link
Contributor

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?

@github-actions
Copy link
Contributor

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants