import adapter from '@sveltejs/adapter-static'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; /** @type {import('@sveltejs/kit').Config} */ const config = { preprocess: vitePreprocess(), kit: { // SPA build: Caddy serves these files in prod, falls back to // index.html for client-side routing. Matches our architecture // — the dashboard is a pure SPA against /api/admin/*. adapter: adapter({ fallback: 'index.html', pages: 'build', assets: 'build', precompress: false, strict: false }) } }; export default config;