/// import { fileURLToPath, URL } from 'node:url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)), }, }, server: { port: 3000, proxy: { '/api': 'http://backend:8080', }, }, preview: { port: 80, host: true, allowedHosts: ['frontend', 'localhost'], proxy: { '/api': 'http://backend:8080', }, }, test: { environment: 'jsdom', setupFiles: ['src/__tests__/setup.ts'], exclude: ['e2e/**', 'node_modules/**'], coverage: { provider: 'v8', reporter: ['text', 'html', 'lcov', 'json'], reportsDirectory: './coverage', thresholds: { lines: 70, branches: 60, functions: 70, statements: 70, }, exclude: ['src/__tests__/**', 'e2e/**'], }, }, })