Project still refreshes when I edit even when I disabled it

So I clicked the checkbox that says “Refresh app on changes” and it still refreshes when I edit it. I really need it to not do this, could someone help me out?

You need watch.json file in the root of your project. This file configures Glitch project’s watcher, that restarts your app. Here is a template:

{
  "install": {
    "include": ["^package\\.json$", "^\\.env$"]
  },
  "restart": {
    "exclude": [],
    "include": ["\\.js", "\\.json", "\\.sqlite"]
  },
  "throttle": 10000
}

throttle is a number in milliseconds that controls restart timeout.

Hope that helps!

2 Likes