更新项目配置,添加 terser 作为压缩工具,修改 Vite 配置以支持生产环境构建,调整 API 基础地址为实际域名,并优化登录页面和游戏页面的状态管理逻辑。

This commit is contained in:
zyh
2025-08-27 18:29:50 +08:00
parent abde5d1f9d
commit 1c08651831
8 changed files with 173 additions and 29 deletions

5
.env.production Normal file
View File

@@ -0,0 +1,5 @@
# 生产环境API基础URL根据实际情况选择
VITE_API_BASE=http://192.140.164.137:18080
# 前端基础URL用于生成分享链接
VITE_BASE_URL=https://2.uzi0.cc/