admin / Synapse-Cortex
publicSelf Hosted ITSM Tool with RBAC/Tenanting and MFA
Synapse-Cortex / Synapse-Cortexv2 / frontend / vite.config.ts
680 B · main
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], // Vite's default assetsDir "assets" collides with this app's own // client-side "/assets" (CMDB) route - any request under /assets/* would // get intercepted by the static-file mount instead of reaching the SPA // catch-all, breaking deep links/refresh on that page. Use a name that // can't collide with an app route. build: { assetsDir: '_assets', }, server: { port: 5180, proxy: { '/api': { target: 'http://127.0.0.1:8440', changeOrigin: true, }, }, }, }) |