import adapter from '@sveltejs/adapter-node'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'

const config = {
    compilerOptions: {
        runes: true,
    },
    preprocess: [
        vitePreprocess({
            script: true,
            style: true,
        }),
    ],
    kit: {
        adapter: adapter(),
        csp: {
            directives: {
                'script-src': ['self', 'https://coturnix.fr/'],
            },
            mode: 'auto',
        },
        paths: {
            relative: false,
        },
    },
}

export default config
