2026-02-16 20:39:41 +01:00
|
|
|
/// <reference types="vitest/config" />
|
2026-02-04 17:13:58 +01:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
|
|
|
|
|
|
// https://vite.dev/config/
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [react(), tailwindcss()],
|
2026-02-16 20:39:41 +01:00
|
|
|
test: {
|
|
|
|
|
environment: 'jsdom',
|
2026-02-21 13:35:15 +01:00
|
|
|
globals: true,
|
|
|
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
|
|
|
exclude: ['**/node_modules/**', '**/e2e/**'],
|
2026-02-16 20:39:41 +01:00
|
|
|
},
|
2026-02-05 15:09:14 +01:00
|
|
|
server: {
|
|
|
|
|
proxy: {
|
|
|
|
|
'/api': {
|
|
|
|
|
target: 'http://localhost:8000',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-02-04 17:13:58 +01:00
|
|
|
})
|