Home
Support Forums

Disable hot reload in Netlify dev?

Forgive me if this is already supported and I just could not find who to do it… first time poster/noob…

How do I disable auto reload / hot reload on code changes in Netlify dev? I have a single page that’s using Webserial and a bunch of other stuff which kinda makes the auto reload a pain sometime.

Cheers,
Mike

OK, I found my own answer so I’m posting here to help others. It’s not actually Netlify Dev that is injecting livereload but it’s Hugo server…
This option removes livereload js
–disableLiveReload

Specifically, in netlify.toml add it here…

command = “npx rimraf public resources functions && npx hugo server --bind=0.0.0.0 --disableFastRender –disableLiveReload

Netlify rocks!

1 Like