import adapter from '@sveltejs/adapter-static'; /** @type {import('@sveltejs/kit').Config} */ const config = { compilerOptions: { // Force runes mode for the project, except for libraries. Can be removed in svelte 6. runes: ({ filename }) => (filename.split(/[/\\]/).includes('node_modules') ? undefined : true) }, kit: { // Static SPA build for Hugging Face Spaces. SSR is disabled in // +layout.ts, so we ship a single index.html that hydrates on the // client and a fallback for any dynamic route. adapter: adapter({ pages: 'dist', assets: 'dist', fallback: 'index.html', precompress: false, strict: false }), alias: { '@/*': './src/lib/*' } } }; export default config;