ampt-templates / sveltekit

Starter template for using Svelte Kit on Ampt
0 stars 0 forks source link

no Hot Module Replacement when executed with ampt run dev #2

Open dennistruemper opened 1 year ago

dennistruemper commented 1 year ago

So I have to refresh the browser after every change. At Ampt you are all about fast feedback loops, so I think this should be working with ampt svelte template.

benminer commented 1 year ago

Are you referring to when running locally? Or your sandbox URL?

We can't "hot reload" the sandbox url because the dev server / watcher is running on your local system, and the site is running deployed in the cloud. With this disconnect, there is not any way for us to "auto refresh" your browser from the site itself, as that is what the local watcher process does when it detects changes.

If this is happening for you when running locally though, that is different, and should be hot reloading. I can try to replicate.

dennistruemper commented 1 year ago

Hi @benminer, I ran "npx ampt run dev" and it started a session for 127.0.0.1:5173. So I switched to a browser window for local (127.0.0.1) and changed some text, hit save, nothing changed in the browser until i hit refresh.