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';
|
2024-07-02 10:07:54 +02:00
|
|
|
import { mdsvex } from 'mdsvex';
|
|
|
|
|
|
|
|
/** @type {import('mdsvex').MdsvexOptions} */
|
|
|
|
const mdsvexOptions = {
|
2024-07-09 17:49:18 +02:00
|
|
|
extensions: ['.mdx']
|
2024-07-02 10:07:54 +02:00
|
|
|
};
|
2024-04-03 16:13:42 +02:00
|
|
|
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
const config = {
|
2024-07-02 10:07:54 +02:00
|
|
|
extensions: ['.svelte', ...mdsvexOptions.extensions],
|
|
|
|
preprocess: [vitePreprocess(), mdsvex(mdsvexOptions)],
|
2024-04-20 15:43:44 +02:00
|
|
|
kit: {
|
|
|
|
adapter: adapter({
|
|
|
|
pages: 'build',
|
|
|
|
assets: 'build',
|
|
|
|
precompress: false,
|
|
|
|
strict: true
|
|
|
|
}),
|
|
|
|
paths: {
|
2024-08-14 12:46:36 +02:00
|
|
|
base: process.argv.includes('dev') ? '' : process.env.BASE_PATH,
|
|
|
|
relative: false,
|
2024-06-19 20:13:13 +02:00
|
|
|
},
|
|
|
|
prerender: {
|
2024-08-14 11:29:23 +02:00
|
|
|
entries: ['/', '/404', '/l/fr/'],
|
2024-06-19 20:13:13 +02:00
|
|
|
crawl: true,
|
2024-04-20 15:43:44 +02:00
|
|
|
}
|
|
|
|
}
|
2024-04-03 16:13:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|