-
Notifications
You must be signed in to change notification settings - Fork 67
Update netlify dev configuration recommendation #126
Conversation
Netlify dev works if you use customized settings in the toml file.
hey @garrypolley! sorry, truly swamped with things right now. thanks so much for opening this. i think @FinnWoelm had some insights here so i defer to him until i can dive into this a bit more. cheers! |
Thanks for the follow-up @lindsaylevine. In working with this more it seems non-deterministic on the steps. Sometimes I can do the steps I posted. Others I have to run the |
I made another update to the doc suggestion here. With the steps I've updated to I get to use the reloads and all the netlify toml things locally. |
Hi @garrypolley, thanks for using and contributing to The feature you are using ( In terms of your configuration of You don't need The "Preview Locally" feature, that we're describing in the README, refers to the ability to build your app and check out the result locally prior to deployment. It's an optional pre-deployment step, that can be useful for checking if your Next.js app does indeed work as intended and for debugging when something goes wrong. In that case, we need to manually "force" the We definitely want to keep the "Preview Locally" feature, but perhaps we can make it more clear that the best way to develop your Next.js app is with
and that's not useful if you have custom Thoughts? |
hey @garrypolley - any thoughts on finn's comment? :D |
Thanks for the detailed response @FinnWoelm . We develop on a few different sites that use NextJS and/or Netlify. The nice part about working between them is being able to use the I suppose the main difference between say Gatsby and NextJS with Netlify is that Gatsby kind of "just works" with I usually prefer to run locally the same as production -- or as much as possible. That's why in this case I wanted to use Is there an end goal of not needing I can help update the documentation, however, my personal preference are directions that get close to what is happening in production.
With regards to this specifically, the configuration was necessary so the site ran locally without issue. I can test again, however, I was not able to get redirects working initially without setting those values specifically. |
Hi @garrypolley, this PR suggested changes to the Running Next.js dev server doesn't generate the build artifacts Next on Netlify needs to create the Netlify functions, redirects, etc. What we really want is to run Also, I tried following the instructions and after running |
Closing this per #162. Please comment/open a new issue if you have any questions/concerns. |
I've been trying this out tonight and it's working like I would expect it to work.