You really don't need Next.js and its bloat, really you don't. svelte.dev/docs/svelte/... Or you know what else you can do if you're one of the "but Svelte isn't ready for production" people? developer.mozilla.org/en-US/docs/W... I've been talking to a wall about React/Next.js for 8 years 😂.
svelte/reactivity/window • Svelte Docs
svelte/reactivity/window • Svelte documentation
svelte.dev
When the network drops, requests normally throw. The experimental 𝚎𝚡𝚙𝚎𝚛𝚒𝚖𝚎𝚗𝚝𝚊𝚕.𝚞𝚜𝚎𝙾𝚏𝚏𝚕𝚒𝚗𝚎 flag keeps them pending and retries on reconnect. A companion 𝚞𝚜𝚎𝙾𝚏𝚏𝚕𝚒𝚗𝚎 hook reports when you're offline, so you can render some UI to let your users know.