Files in public/ don’t cause Node to reload

When I edit files in a project, the Node process usually reloads my server. However, if I edit anything inside the project’s public/ directory, it does not reload Node. My Node server code relies on some code inside public/. Is there a way to make Glitch reload Node when I edit code inside of public/?

With watch.json you can set wich files node will restart if they change.

See watch.json | glitch project

1 Like