update production API domain

This commit is contained in:
TU
2026-07-29 21:56:50 +08:00
parent 1aec5d43de
commit 892bbaa226
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
VITE_API_BASE_URL=http://49.232.185.154:3002 VITE_API_BASE_URL=https://yiulix.tech
+3 -2
View File
@@ -97,10 +97,11 @@ OpenResty / 网站反向代理:
Android 测试包会读取 `.env.android` Android 测试包会读取 `.env.android`
```text ```text
VITE_API_BASE_URL=http://49.232.185.154:3002 VITE_API_BASE_URL=https://yiulix.tech
``` ```
如果以后换成域名和 HTTPS,改这里即可: 网页生产构建默认使用同源 `/api`,由 OpenResty 反向代理到 Node 服务;无需暴露 `3002` 端口。
如果 Android API 域名发生变化,修改 `.env.android`
```text ```text
VITE_API_BASE_URL=https://your-domain.com VITE_API_BASE_URL=https://your-domain.com