Catalyst / admin/Synapse-Cortex 14.8 GB / 57.8 GB 40.0 GB free
Help Sign in

admin / Synapse-Cortex

public

Self Hosted ITSM Tool with RBAC/Tenanting and MFA

Code Issues Pull requests Pipelines Packages Security Insights Wiki Settings
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,
      },
    },
  },
})