feat(web): VITE_API_BASE and I6 home module navigation

Made-with: Cursor
This commit is contained in:
2026-04-06 22:46:31 +08:00
parent d9536802db
commit 499fef3c2f
3 changed files with 67 additions and 6 deletions
+10
View File
@@ -15,6 +15,16 @@ npm run dev
浏览器访问 `http://127.0.0.1:5173`,登录 `admin` / `admin``/api` 由 Vite 代理到 `8080`
## 生产 / Staging 构建(`VITE_API_BASE`
静态部署到 Nginx 且 **API 为独立主机** 时,构建前设置后端根 URL(**无**尾部斜杠;axios 仍请求 `/api/v1/...`):
```bash
VITE_API_BASE=https://your-platform-api.example.com npm run build
```
与 [I6_CLOSEOUT.md](../../docs/engineering/iterations/I6_CLOSEOUT.md) §4 环境矩阵一致。本地开发通常 **不设** 该变量。
## 构建
```bash