Files
GEWU/web/vite.config.ts
T

21 lines
535 B
TypeScript
Raw Normal View History

import react from '@vitejs/plugin-react';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [react()],
server: {
allowedHosts: ['msi.tail0b014a.ts.net'],
proxy: {
'/v1': {
target: 'http://127.0.0.1:8000',
// Keep the browser-facing host so the API can validate Origin behind TLS proxies.
changeOrigin: false,
},
},
},
test: {
environment: 'jsdom',
include: ['src/**/*.test.{ts,tsx}'],
setupFiles: ['./src/test-setup.ts'],
},
});