22 lines
535 B
TypeScript
22 lines
535 B
TypeScript
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'],
|
|
},
|
|
});
|