更新开发环境配置,注释掉本地 API 地址并启用生产环境 URL。同时,更新 TypeScript 构建信息以包含新的 API 路径,替换旧的 JavaScript 文件引用,提升代码的可维护性和一致性。

This commit is contained in:
乘风
2026-02-10 15:07:20 +08:00
parent 90a77da2da
commit fef796e4d5
5 changed files with 95 additions and 95 deletions

View File

@@ -1,7 +1,7 @@
# 对接后端 base URL不改 API 路径,仅改此处即可切换 Next → Gin
# 宝塔部署:若 API 站点开启了强制 HTTPS这里必须用 https否则预检请求会被重定向导致 CORS 报错
# VITE_API_BASE_URL=http://localhost:3006
VITE_API_BASE_URL=http://localhost:8080
# VITE_API_BASE_URL=http://localhost:8080
# VITE_API_BASE_URL=https://soulapi.quwanzhi.com
# VITE_API_BASE_URL=https://soul.quwanzhi.com
VITE_API_BASE_URL=https://soul.quwanzhi.com