Files
life-echo/app-eval-web/vite.config.ts
Kevin ca8bcc8489 feat(evaluation): session catalog, user export import, and eval web UI
- Extend evaluation API: schemas, router, repo, admin and execution services
- Improve user export markdown importer; add fixtures and importer tests
- Session catalog repo/service updates; internal app wiring and docs
- Add internal-eval.sh helper; refresh app-eval-web (App, styles, Vite)
2026-04-06 13:49:28 +08:00

20 lines
464 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
/**
* 开发时可将 VITE_EVAL_API_BASE 留空,前端请求 /internal/... 由 Vite 转发到 8001
* 避免连错端口、CORS 或浏览器策略导致看似 404。
*/
export default defineConfig({
plugins: [react()],
server: {
port: 5174,
proxy: {
"/internal": {
target: "http://127.0.0.1:8001",
changeOrigin: true,
},
},
},
});