Files
aiops/frontend/vite.config.ts
T

39 lines
822 B
TypeScript

import path from "path"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
import { inspectAttr } from 'kimi-plugin-inspect-react'
// https://vite.dev/config/
export default defineConfig({
base: './',
plugins: [inspectAttr(), react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
port: 5173,
host: true,
proxy: {
"/api": {
target: "http://localhost:8080",
changeOrigin: true,
},
"/ws": {
target: "http://localhost:8080",
ws: true,
changeOrigin: true,
},
"/health": {
target: "http://localhost:8080",
changeOrigin: true,
},
"/version": {
target: "http://localhost:8080",
changeOrigin: true,
},
},
},
})