2024-04-20 15:43:44 +02:00
|
|
|
import adapter from '@sveltejs/adapter-static';
|
2024-04-03 16:13:42 +02:00
|
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
const config = {
|
2024-04-20 15:43:44 +02:00
|
|
|
preprocess: vitePreprocess(),
|
|
|
|
kit: {
|
|
|
|
adapter: adapter({
|
|
|
|
pages: 'build',
|
|
|
|
assets: 'build',
|
|
|
|
fallback: 'index.html',
|
|
|
|
precompress: false,
|
|
|
|
strict: true
|
|
|
|
}),
|
|
|
|
paths: {
|
|
|
|
base: process.argv.includes('dev') ? '' : process.env.BASE_PATH
|
2024-06-19 20:13:13 +02:00
|
|
|
},
|
|
|
|
prerender: {
|
|
|
|
entries: ['/'],
|
|
|
|
crawl: true,
|
2024-04-20 15:43:44 +02:00
|
|
|
}
|
|
|
|
}
|
2024-04-03 16:13:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|