Files
life-echo/app-eval-web/README.md

26 lines
586 B
Markdown
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.
# 内部评测 WebLife Echo
独立 Vite + React 控制台,对接 `app.internal_main:internal_app`
## 环境变量
- `VITE_EVAL_API_BASE` — 内部 API 根,如 `http://127.0.0.1:8001`
- `VITE_EVAL_API_KEY` — 与后端 `INTERNAL_EVAL_API_KEY` 相同
## 开发
```bash
npm install
VITE_EVAL_API_BASE=http://127.0.0.1:8001 VITE_EVAL_API_KEY=your-secret npm run dev
```
浏览器打开提示的端口(默认 5174
## 构建
```bash
npm run build
```
产物在 `dist/`可挂任意静态服务器。SSE 使用 `?key=` 传评测密钥(见后端文档)。