- 补入库:server/internal/db/dump.go、redis 分页/扫描预算测试、opsxdb-mcp main_test、 packages/opsxdb-mcp package-lock、docs 审计与对比文档等 37 个新文件 - 含结构扁平化进行中的 80 处修改与 155 处旧结构删除(server/ src/ src-tauri/ 为当前有效源) - 构建产物(bin/target/dist)与签名私钥仍按规则排除
37 lines
854 B
TypeScript
37 lines
854 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "node:path";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: { "@opsxdb/ui": path.resolve(__dirname, "./src/index.ts"),
|
|
},
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks(id) {
|
|
if (id.includes("/node_modules/@codemirror/") || id.includes("/node_modules/@lezer/")) return "editor";
|
|
if (id.includes("/node_modules/sql-formatter/")) return "sql-formatter";
|
|
},
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
host: "127.0.0.1",
|
|
port: 5174,
|
|
strictPort: true,
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://127.0.0.1:8788",
|
|
changeOrigin: true,
|
|
},
|
|
"/health": {
|
|
target: "http://127.0.0.1:8788",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|