- 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)
20 lines
464 B
TypeScript
20 lines
464 B
TypeScript
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,
|
||
},
|
||
},
|
||
},
|
||
});
|