Files
ClusterCanvas/webui/vite.config.ts
T
Squid d2b92401f1 Add dashboard shell with sidebar nav and version header.
Replace the health-check stub UI with a left menu and content panel so section navigation and frontend/backend versions are visible in the shell.
2026-07-16 20:57:47 +02:00

26 lines
607 B
TypeScript

import { readFileSync } from 'node:fs'
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
const packageJson = JSON.parse(
readFileSync(new URL('./package.json', import.meta.url), 'utf-8'),
) as { version: string }
export default defineConfig({
plugins: [react()],
define: {
__FRONTEND_VERSION__: JSON.stringify(packageJson.version),
},
server: {
proxy: {
'/health': 'http://localhost:8080',
'/api': 'http://localhost:8080',
},
},
test: {
environment: 'jsdom',
setupFiles: ['./src/test/setup.ts'],
globals: true,
},
})