20 lines
374 B
TypeScript
20 lines
374 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|||
|
|
import react from '@vitejs/plugin-react'
|
||
|
|
|
||
|
|
const backend = 'http://localhost:8080'
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [react()],
|
||
|
|
server: {
|
||
|
|
proxy: {
|
||
|
|
'/api': backend,
|
||
|
|
'/auth': backend,
|
||
|
|
'/media': backend,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
test: {
|
||
|
|
environment: 'jsdom',
|
||
|
|
setupFiles: ['./src/test/setup.ts'],
|
||
|
|
},
|
||
|
|
})
|