import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import { css } from 'css-configuration'; const PORT = process.env.PORT || 3000; export default defineConfig({ plugins: [react()], css, server: { proxy: { '/api': { target: `http://localhost:${PORT}`, changeOrigin: true, secure: false, }, }, }, test: { environment: 'happy-dom', globals: true, setupFiles: ['@testing-library/jest-dom/vitest'], }, });