Merge pull request #514 from NA-Wen/main

readme: add hint for disconnet between frontend and backend
This commit is contained in:
Shu Yao 2026-01-14 13:21:41 +08:00 committed by GitHub
commit 46c5b2ab18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View File

@ -133,6 +133,13 @@ ChatDev 已从一个专门的软件开发多智能体系统演变为一个全面
```
> 然后访问 Web 控制台:**[http://localhost:5173](http://localhost:5173)**。
> **💡 提示**:如果前端无法连接后端,可能是默认端口 `6400` 已被占用。
> 请将前后端同时切换到一个空闲端口,例如:
>
> * **后端**:启动时指定 `--port 6401`
> * **前端**:设置 `VITE_API_BASE_URL=http://localhost:6401`
### 🔑 配置
* **环境变量**:在项目根目录创建一个 `.env` 文件。

View File

@ -134,6 +134,14 @@ See our paper in [Multi-Agent Collaboration via Evolving Orchestration](https://
VITE_API_BASE_URL=http://localhost:6400 npm run dev
```
> Then access the Web Console at **[http://localhost:5173](http://localhost:5173)**.
> **💡 Tip**: If the frontend fails to connect to the backend, the default port `6400` may already be occupied.
> Please switch both services to an available port, for example:
>
> * **Backend**: start with `--port 6401`
> * **Frontend**: set `VITE_API_BASE_URL=http://localhost:6401`
### 🔑 Configuration