import { sveltekit } from '@sveltejs/kit/vite'
import tailwindcss from '@tailwindcss/vite'

/** @type {import('vite').UserConfig} */
const config = {
    plugins: [tailwindcss(), sveltekit()],
    server: {
        host: true,
        allowedHosts: ['localhost', 'coturnix.fr'],
        fs: {
            allow: ['open'],
        },
        proxy: {
            '/pvgis': {
                target: 'https://127.0.0.1:8002',
                secure: false,
            },
        },
    },
}

export default config
