Reloading code with custom server #12972
-
Hello there - i have a custom server I'm using with NextJS for the client-side frontend. I'm trying to have my code reload quickly during development. From #791, Is there a configuration that achieves the combination of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You should be able to use something like this custom server example and instead of running |
Beta Was this translation helpful? Give feedback.
You should be able to use something like this custom server example and instead of running
node server.js
like in the example package.json you can instead just do"dev": "nodemon server.js"
and now you'll have code reloading for your server as well as for your frontend code.