Files
KubeDiagrams/webapp/frontend/vite.config.js
T
Sadallah 637b7786b4 fix(webapp) : fix Mermaid size limit, Monaco YAML editor, and Cluster history bug :
- Increase Mermaid maxTextSize/maxEdges to support large cluster diagram
-  Add shared useHistorySync hook across Manifest/Helm/HelmFile/Cluster tab
- Fix Cluster history: missing id causing overwrite, restore only working once, diagram not restored, duplicate entry created on restore
- Add cluster label/color to HistoryPanel and remove dead code
2026-07-17 00:56:07 +02:00

22 lines
477 B
JavaScript

import { defineConfig } from 'vite'
import tailwindcss from '@tailwindcss/vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
optimizeDeps: {
exclude: ['@terrastruct/d2'],
include: ['path-browserify'],
},
server: {
proxy: {
'/api': {
target: 'http://localhost:5000', // the backend
changeOrigin: true,
secure: false,
}
}
}
})