GeoIntel release gates / Compile, test, contracts and builds (push) Successful in 1m49s
GeoIntel release gates / Python and npm vulnerability policy (push) Successful in 21s
GeoIntel release gates / Production AI image, SBOM and container scan (push) Successful in 5m39s
GeoIntel release gates / Deploy exact gated revision to Unraid (push) Failing after 58m43s
41 lines
864 B
TypeScript
41 lines
864 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
declare const process: { env: Record<string, string | undefined> }
|
|
|
|
const apiProxyTarget = process.env.VITE_API_PROXY_TARGET ?? 'http://localhost:8000'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: 'jsdom',
|
|
include: ['src/**/*.test.{ts,tsx}'],
|
|
clearMocks: true,
|
|
restoreMocks: true,
|
|
},
|
|
build: {
|
|
chunkSizeWarningLimit: 900,
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
maplibre: ['maplibre-gl'],
|
|
vendor: ['react', 'react-dom'],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': {
|
|
target: apiProxyTarget,
|
|
changeOrigin: true,
|
|
},
|
|
'/health': {
|
|
target: apiProxyTarget,
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
})
|