Generated static site reloading

I’ve created a static and generated-static site and wondering why the latter reloads every ~2 minutes. Looking in the console it says a websocket connection fails and it reloads. I am trying to use npm for importing babylonjs since in the static site in the editor it says ‘BABYLON’ is not defined (even though it works) So this may just be a bit of ocd not letting go, and just using the static.

static: https://tall-pinto-cafe.glitch.me/
generated-static: https://abrupt-statuesque-lemur.glitch.me/