vite.config.ts
476 Bytes
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [react()],
server: {
host: '0.0.0.0',
proxy: {
'/api': {
target: process.env.VITE_API_PROXY_TARGET || 'http://192.168.1.191:8000',
changeOrigin: true,
},
},
},
preview: {
host: '0.0.0.0',
},
test: {
environment: 'jsdom',
globals: true,
setupFiles: './src/test/setup.ts',
},
});