chore: 统一本地服务器与远程仓库源码
- 合并 main 与 master 历史并以服务器结构为基线 - 保留迁移、数据保留、AWS 账单与部署安全能力 - 建立 SDD 规格和 CI 验证闭环
This commit is contained in:
commit
fd60361d93
460 files changed
+37492
-23871
No files matched your search
+11
-7
@@ -4,7 +4,10 @@ import { defineConfig } from "vite"
|
||||
import { inspectAttr } from 'kimi-plugin-inspect-react'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig(({ command }) => ({
|
||||
export default defineConfig(({ command }) => {
|
||||
// 允许并行验证不同后端实例,未配置时保持现有 8080 默认值。 // Logan.Li
|
||||
const apiProxyTarget = process.env.VITE_API_PROXY_TARGET || "http://localhost:8080"
|
||||
return ({
|
||||
// 必须用绝对路径,否则 /audit/terminal 等深链会解析成 /audit/assets/... 导致白屏 // Logan.Li
|
||||
base: '/',
|
||||
plugins: [
|
||||
@@ -44,26 +47,27 @@ export default defineConfig(({ command }) => ({
|
||||
host: true,
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "http://localhost:8080",
|
||||
target: apiProxyTarget,
|
||||
changeOrigin: true,
|
||||
},
|
||||
"/ws": {
|
||||
target: "http://localhost:8080",
|
||||
target: apiProxyTarget,
|
||||
ws: true,
|
||||
changeOrigin: true,
|
||||
},
|
||||
"/health": {
|
||||
target: "http://localhost:8080",
|
||||
target: apiProxyTarget,
|
||||
changeOrigin: true,
|
||||
},
|
||||
"/version": {
|
||||
target: "http://localhost:8080",
|
||||
target: apiProxyTarget,
|
||||
changeOrigin: true,
|
||||
},
|
||||
"/agent": {
|
||||
target: "http://localhost:8080",
|
||||
target: apiProxyTarget,
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}))
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user