Promptaid-VIsion / frontend /vite.config.ts
SCGR's picture
tests
60b6623
raw
history blame
503 Bytes
/// <reference types="vitest" />
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
base: '/app/',
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
secure: false,
},
},
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./src/test/setup.ts'],
css: true,
deps: {
inline: ['@ifrc-go/ui']
}
},
})