diff --git a/README.md b/README.md index 2575a0f..df54d85 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ npm run frontend # Umi Max 前端,支持 HMR | 端 | 地址 | 说明 | | --- | --- | --- | -| 前端 | | `/api` 代理到本地 control-plane | +| 前端 | | 固定端口(STRICT_PORT,被占用时启动报错而非递增);`/api` 代理到本地 control-plane | | control-plane | | Go 热加载 | | native browser gateway | | 宿主机 Xvfb/浏览器生命周期 | | PostgreSQL | `127.0.0.1:15433`(可由 `CREATORHUB_POSTGRES_PORT` 覆盖) | 仅数据库依赖使用容器 | diff --git a/web/package.json b/web/package.json index b2bafb1..e844fc8 100644 --- a/web/package.json +++ b/web/package.json @@ -2,7 +2,7 @@ "private": true, "author": "杨豪 ", "scripts": { - "dev": "max dev", + "dev": "STRICT_PORT=8099 PORT=8099 max dev", "build": "max build", "start": "max preview" },