Files
gpx.studio/website/svelte.config.js

32 lines
827 B
JavaScript
Raw Normal View History

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: {
base: process.argv.includes('dev') ? '' : process.env.BASE_PATH
2024-06-19 20:13:13 +02:00
},
prerender: {
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;