You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
582 B

import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
compilerOptions: {
compatibility: {
componentApi: 4 // Enable Svelte 4 component API for dynamic mounting
}
},
kit: {
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: '200.html',
precompress: true,
strict: true
}),
prerender: {
handleUnseenRoutes: 'ignore'
}
}
};
export default config;