mirror of
https://github.com/hpd840321/craftlabs-authorization-sdk.git
synced 2026-06-09 10:00:30 +08:00
feat(web): VITE_API_BASE and I6 home module navigation
Made-with: Cursor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user