Files
line-of-sight/frontend/vite.config.js
T
(jenkins) 0826c606ba
Tests / backend-test (pull_request) Successful in 10s
Tests / frontend-test (pull_request) Failing after 12s
Tests / e2e-test (pull_request) Failing after 1m38s
allow any host name for now.
2026-04-16 23:50:26 +01:00

27 lines
504 B
JavaScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
test: {
globals: true,
environment: 'happy-dom',
setupFiles: ['./src/setupTests.js'],
exclude: ['**/e2e/**', '**/node_modules/**'],
},
server: {
port: 3050,
host: '0.0.0.0',
allowedHosts: ['*']
},
build: {
outDir: 'build',
target: 'esnext',
},
optimizeDeps: {
esbuildOptions: {
target: 'esnext',
},
},
});