To be clear, this may not be an issue. This may not be a CLI issue. This may just be me being dense.
When first testing netlify dev, I noticed I had not set up redirects correctly for my site. I began testing and noticed that my changes were not being reflected unless I completely restarted the CLI.
I read the docs on telling Jekyll to include underscore files and adding this to my config:
include: [_redirects]
This worked in that my generated _site directory got the copy, but didn’t address the problem while running netlify dev. I noticed that changes to /_redirects did not copy to _site/_redirects until after I told Jekyll to generate a new build.
My site takes near ten minutes to build so for now I’m simply copying the file by hand while it runs, but I just wanted to share this in case it is a real bug, or I’m missing something obvious.
cc @perry i think our docs may be slightly misleading on this. netlify dev does not copy the _redirects file for you, because thats something your build tool does and we run your devserver, not your build tool, during netlify dev. so we actually have to point people to the static folder in the [dev] block in netlify.toml where _redirects is contained.
hi jbrains, you cant find it because it is dreadfully named and poorly designed. this is our fault. we will fix this eventually.
# sample dev block in the toml
# note: each of these fields are OPTIONAL and should only be used if you need an override
[dev]
publish = "dist" # If you use a _redirect file, provide the path to your static content folder