I’m a bit of a newbie to netlify and NextJS, so I’m mostly looking for advice with regards to how to properly set up a development environment for Netlify.
As far as I can tell, and from what it sounds like from other posts, I should be able to use the “netlify dev” or “netlify dev --live” commands to create a dev server that can automatically deploy as I make changes to my code.
However, while both commands will start the server, build my code, and open the browser to show the newly built app, nothing happens when I make further changes to my code.
I don’t see any particular error messages related to building the app or netlify that could indicate what is happening, as Netlify does not seem to output anything to the terminal when I make changes to my code, and additionally the build proceeds just fine if I simply close the process and start it again with “netlify dev” or “netlify dev --live”.
I can use npm to do this by running “npm run dev”, wherein a local server is set up, and the app is built automatically. From there, when new code changes are saved, the app is recompiled and the page refreshes automatically to reveal new changes.
Unfortunately, this doesn’t work for me since my website uses Netlify functions to connect to an external database, so I need to use Netlify’s tools to achieve this.
If there is any more useful information that I should share, please let me know.