/// import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import tailwindcss from '@tailwindcss/vite'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react(), tailwindcss()], test: { globals: true, environment: 'jsdom', setupFiles: './src/test/setup.ts', css: false, coverage: { provider: 'v8', reporter: ['text', 'json', 'html'], exclude: [ 'node_modules/**', 'dist/**', '**/*.d.ts', '**/*.config.*', ], }, }, server: { proxy: { '/api': { target: 'http://localhost:3001', changeOrigin: true, }, '/ws': { target: 'ws://localhost:3001', ws: true, }, } } });