| 12345678910111213141516171819 |
- 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: {
- adapter: adapter({
- // Generate a fallback HTML file so dynamic routes work when served statically
- fallback: '200.html'
- }),
- // Disable automatic prerendering of routes since we rely on the fallback SPA behaviour
- prerender: { entries: [] }
- }
- };
- export default config;
|