Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengFai committed Dec 18, 2023
1 parent 0bb129a commit 35a0e5c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions XAgentWeb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,31 @@ npm install
npm run dev
```

# 关于后台地址的修改
# Guidance on modifying the backend address


+ 可能遇到的错误

Possible errors

1.
```
WebSocket connection to 'ws://localhost:8090/ws
```
2. 对话卡在Outer Loop中
The conversation is stuck in the Outer Loop
+ 如果您在遇到Websocket连接失败的情况,可以尝试修改后台地址,修改后台地址的方法如下:
If you encounter a Websocket connection failure, you can try to modify the background address. The method of modifying the background address is as follows:
1. 编辑.env.development或者.env.test文件,将VITE_BACKEND_URL的值修改为后台地址,例如:
Edit the .env.development file and modify the value of VITE_BACKEND_URL to the backend address, for example:
```
VITE_BACKEND_URL=http://your-IP:8090
```
3 changes: 2 additions & 1 deletion XAgentWeb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"type": "module",
"scripts": {
"dev": "vite --host --mode development",
"build": "vite build --mode production"
"build": "vite build --mode production",
"test": "vite --host --mode test"
},
"dependencies": {
"@codemirror/lang-python": "^6.1.3",
Expand Down

0 comments on commit 35a0e5c

Please sign in to comment.