import { defineConfig } from 'vite' import tailwindcss from '@tailwindcss/vite' import { APP_VERSION } from '../shared/src/index.js' export default defineConfig({ plugins: [tailwindcss()], define: { __APP_VERSION__: JSON.stringify(APP_VERSION), }, server: { port: 5173, // Le cookie de session est same-origin : on proxifie l'API plutôt que // d'activer CORS, sinon le cookie ne partirait pas en cross-origin. proxy: { '/api': { target: 'http://localhost:8787', changeOrigin: false, }, }, }, build: { outDir: 'dist', sourcemap: true, }, })