/// import path from 'path'; import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], resolve: { alias: { '@': path.resolve(__dirname, '.'), }, }, server: { // Avoid clash with site dashboard-cpsp (:3001 → :8000) port: 3002, host: '0.0.0.0', proxy: { '/api': { target: 'http://127.0.0.1:8001', changeOrigin: true, }, }, }, test: { globals: true, environment: 'jsdom', setupFiles: './tests/setup.ts', exclude: ['node_modules/**', 'dist/**'], }, });