fix: 修复本地运行缺乏开发环境配置变量问题

This commit is contained in:
YeMingfei666 2025-03-27 10:44:13 +08:00
parent 33da9d8af0
commit 776a416019
2 changed files with 21 additions and 1 deletions

21
.env.development Normal file
View File

@ -0,0 +1,21 @@
# 应用端口
VITE_APP_PORT=3000
# 代理前缀
VITE_APP_BASE_API=/dev-api
# 接口地址
# VITE_APP_API_URL=https://tapi.cashier.sxczgkj.cn/ # 测试
VITE_APP_API_URL=https://cashier.sxczgkj.com/ # 正式
# VITE_APP_API_URL=http://192.168.1.31/ # 本地
# WebSocket 端点(不配置则关闭),线上 ws://api.youlai.tech/ws ,本地 ws://localhost:8989/ws
# VITE_APP_WS_ENDPOINT=wss://sockets.sxczgkj.com/wss
VITE_APP_WS_ENDPOINT=wss://czgeatws.sxczgkj.com/wss # 正式
# VITE_APP_WS_ENDPOINT=ws://192.168.1.31 # 本地
# 启用 Mock 服务
VITE_MOCK_DEV_SERVER=false

1
.gitignore vendored
View File

@ -16,4 +16,3 @@ dist-ssr
stats.html stats.html
pnpm-lock.yaml pnpm-lock.yaml
package-lock.json package-lock.json
.env.development