-
Notifications
You must be signed in to change notification settings - Fork 87
[Bug]: Redirects are not working in the deployed application #1876
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
Comments
oh my gosh I just should have read that! but I think it's still strange that it's working in Especially If I move it to the |
Yeah, that has to be a bug. I wonder if dev is looking in the wrong publish dir |
Similarly, this I believe potentially conflicts with NextJS's (Note: https://docs.netlify.com/integrations/frameworks/next-js/redirects-and-rewrites/ mentions to not add a root-level rewrite, but |
how do you guys solve this?, can't see the logs |
@ascorbic Is this still valid for v5? |
Summary
When I create a app with netlify and add a
_redirects
file and serve it withntl dev
it's working on the deployed app it's notSteps to reproduce
The site: https://app.netlify.com/sites/euphonious-swan-75085e/overview
A link to a reproduction repository
https://github.com/lukasholzer/netlify-next-redirect-issue
Next Runtime version
should be the latest in the CI
More information about your build
netlify.toml
)What OS are you using?
Mac OS
Your netlify.toml file
`netlify.toml`
# Paste content of your `netlify.toml` file here
Your public/_redirects file
`_redirects`
/ /foo
Your
next.config.js
file`next.config.js`
# Paste content of your `next.config.js` file here. Check there is no private info in there.
Builds logs (or link to your logs)
Build logs
Function logs
Function logs
.next JSON files
generated .next JSON files
The text was updated successfully, but these errors were encountered: