Revert "Build WebUI during Vercel deployment and enforce Cache-Control for admin UI"

This commit is contained in:
CJACK.
2026-02-04 18:25:04 +08:00
committed by GitHub
parent 2007e0cde3
commit 58d54adee2
6 changed files with 304 additions and 40 deletions

View File

@@ -131,8 +131,8 @@ WebUI 开发服务器会启动在 `http://localhost:5173`,并自动代理 API
WebUI 构建产物位于 `static/admin/` 目录。
**自动构建(推荐)**
-前由 Vercel 在部署时执行 WebUI 构建(见 `vercel.json``buildCommand`
- GitHub Actions 的 WebUI 自动构建流程已关闭
- `webui/` 目录下的文件变更并推送到 `main` 分支时GitHub Actions 会自动构建并提交产物
- PR 合并时会自动触发构建
**手动构建**
```bash
@@ -145,7 +145,7 @@ npm install
npm run build
```
> **贡献者注意**:修改 WebUI 后无需手动构建,Vercel 部署会自动构建
> **贡献者注意**:修改 WebUI 后无需手动构建,CI 会自动处理
---