Files
lsy 9195000f62 refactor(ui): 将 admin 目录更名为 ui 并同步配置
- 迁移 apps/admin → apps/ui 并更新构建引用
- 同步 wrangler、tsconfig、bun.lock 与 .gitignore
- 更新 CI 与文档/知识库路径
2026-02-21 14:33:10 +08:00

16 lines
253 B
TypeScript

import { defineConfig } from "vite";
const apiTarget = process.env.VITE_API_TARGET ?? "http://localhost:8787";
export default defineConfig({
build: {
outDir: "dist",
},
server: {
proxy: {
"/api": apiTarget,
"/v1": apiTarget,
},
},
});