go-guess/frontend/vite.config.ts

21 lines
428 B
TypeScript
Raw Normal View History

2026-09-19 20:31:14 +02:00
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vitest/config'
export default defineConfig({
plugins: [react()],
server: {
allowedHosts: ['nmbs.guess.local', 'ypto.guess.local'],
2026-09-19 20:31:14 +02:00
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
},
},
},
test: {
environment: 'jsdom',
setupFiles: './src/test/setup.ts',
css: true,
},
})