Closed as not planned
Description
Summary
When I create a app with netlify and add a _redirects
file and serve it with ntl dev
it's working on the deployed app it's not
Steps to reproduce
- Clone this repo: https://github.com/lukasholzer/netlify-next-redirect-issue
- Ntl dev (on the home page it should use the redirect)
- Check out the deployed version (not working) https://main--euphonious-swan-75085e.netlify.app/
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
- I am building using the CLI
- I am building using file-based configuration (
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
# Paste logs here
Function logs
Function logs
# Paste logs here
.next JSON files
generated .next JSON files
# Paste file contents here. Please check there isn't any private info in them
# You can either build locally, or download the deploy from Netlify by clicking the arrow next to the deploy time.