import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ plugins: [sveltekit()], server: { host: '0.0.0.0', port: 5173, // SvelteKit excludes build output itself, but must watch generated route modules. // Ignoring all of .svelte-kit leaves cached page imports pointing at old route IDs. watch: { usePolling: process.env.WATCH_USE_POLLING === 'true', interval: 1000 } } });