Is there a way to stop the server from evaluating code immediately?


#1

I know you can uncheck “Refresh App on Changes” but that seems to only stop hot reloading if you are viewing your site in a new tab or window. Sometimes when I am typing code I don’t want it to run straight away.

I have found myself in an infinite loop sometimes that is hard to get out of. Also if working with the filesystem this could turn into a problem with possibly accidentally deleting files etc etc.

Thanks, Josh


#2

Hi phocks, welcome to the Glitch community!

You can add a watch.json file for more fine-grained control over how your app refreshes. See https://glitch.com/faq#restart for more details.


#3

Thanks so much. Exactly what I needed!