feat(frontend): M9 模态 UI(mode 系统+共享 store+WS 客户端 + chat(思维链/工具回显/情绪徽标)/code/Agent 监控/后台思考页 + Miuix 设计 token + PWA);tsc+vite build 通过
This commit is contained in:
1 parent
b3ffd51736
commit
4c48e94659
40 files changed
+5321
No files matched your search
@@ -0,0 +1,28 @@
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
// Cyrene v2 frontend (M9). Dev server proxies REST + WebSocket to the single
|
||||
// backend gateway on :8080 so the SPA can stay same-origin. The production
|
||||
// build is served by the gateway itself (single binary), so `base` is relative
|
||||
// and there is no runtime proxy.
|
||||
const devProxy = {
|
||||
"/api": { target: "http://localhost:8080", changeOrigin: true },
|
||||
"/ws": { target: "ws://localhost:8080", ws: true },
|
||||
};
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
base: "./",
|
||||
server: {
|
||||
port: 5173,
|
||||
proxy: devProxy,
|
||||
},
|
||||
preview: {
|
||||
port: 4173,
|
||||
},
|
||||
build: {
|
||||
outDir: "dist",
|
||||
sourcemap: false,
|
||||
target: "es2022",
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user