Skip to content

Commit 22f622c

Browse files
committed
chore: 🔨 优化环境配置
1 parent 5fc58e2 commit 22f622c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.env.development

+4-6
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ VITE_APP_PORT=3000
44
# 代理前缀
55
VITE_APP_BASE_API=/dev-api
66

7-
# 主机地址
8-
VITE_APP_HOST=api.youlai.tech # 有来线上环境
9-
# VITE_APP_HOST=localhost:8989 # 本机开发环境
10-
117
# 接口地址
12-
VITE_APP_API_URL=http://$VITE_APP_HOST
8+
VITE_APP_API_URL=https://api.youlai.tech # 线上
9+
# VITE_APP_API_URL=http://localhost:8989 # 本地
1310

1411
# WebSocket端点
15-
VITE_APP_WS_ENDPOINT=ws://$VITE_APP_HOST/ws
12+
VITE_APP_WS_ENDPOINT=wss://api.youlai.tech/ws # 线上
13+
# VITE_APP_WS_ENDPOINT=ws://localhost:8989/ws # 本地
1614

1715
# 是否启用 Mock 服务
1816
VITE_MOCK_DEV_SERVER=false

0 commit comments

Comments
 (0)