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
The _redirects file, which as per the docs should be placed in the /public/ dir is not evaluated when running your application using netlify dev.
When running netlify dev locally to run my app, redirects specified in the _redirects file worked and were evaluated. Now, they do not work.
Steps to reproduce
Create a _redirects file. Add a valid redirect rule (you need a page defined in pages/ dir so you can redirect). For example:
/hello /{your_valid_page_route}
Ensure your _redirects file is inside the /public directory.
Run your Next js app using netlify-cli netlify dev.
Navigate to the page {local_domain}/hello. The redirect will not work.
A link to a reproduction repository
No response
Plugin version
4.2.5
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`
# Paste content of your `_redirects` file here
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.
The text was updated successfully, but these errors were encountered:
Summary
The
_redirects
file, which as per the docs should be placed in the/public/
dir is not evaluated when running your application usingnetlify dev
.When running
netlify dev
locally to run my app, redirects specified in the_redirects
file worked and were evaluated. Now, they do not work.Steps to reproduce
_redirects
file. Add a valid redirect rule (you need a page defined inpages/
dir so you can redirect). For example:_redirects
file is inside the/public
directory.netlify dev
.{local_domain}/hello
. The redirect will not work.A link to a reproduction repository
No response
Plugin version
4.2.5
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`
# Paste content of your `_redirects` file here
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: