212b9e7c21
Fusion-Task-Id: FN-002 Fusion-Task-Lineage: 49cb7077-d805-4d39-9a27-ae50744f2839
29 lines
609 B
TypeScript
29 lines
609 B
TypeScript
/// <reference types="vitest/config" />
|
|
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': {
|
|
target: process.env.VITE_API_URL || 'http://localhost:8000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
include: ['src/**/*.{test,spec}.{ts,tsx}'],
|
|
setupFiles: ['./src/__tests__/setup.ts'],
|
|
},
|
|
})
|