Files
marktvogt.de/web/svelte.config.js
vikingowl 072c9dc934 feat: add version polling and auto-reload on deploy
- Enable kit.version.pollInterval (60s) so SvelteKit detects new
  deploys via version.json
- Add beforeNavigate guard that forces a full page reload when a
  new version is detected, preventing stale client-side state
- Preload fonts, JS, and CSS for faster initial paint
2026-02-22 19:24:18 +01:00

14 lines
211 B
JavaScript

import adapter from '@sveltejs/adapter-node';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter(),
version: {
pollInterval: 60_000
}
}
};
export default config;