/// import { fileURLToPath, URL } from 'node:url'; import react from '@vitejs/plugin-react'; import { defineConfig } from 'vite'; export default defineConfig({ plugins: [react()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)), }, }, server: { port: 5173, proxy: { '/api': { target: 'http://localhost:8080', changeOrigin: true, }, }, }, build: { outDir: 'dist', sourcemap: false, chunkSizeWarningLimit: 1200, }, test: { environment: 'node', setupFiles: ['./src/test/setup.ts'], include: ['src/**/*.test.ts'], }, });