update production API domain
This commit is contained in:
@@ -1 +1 @@
|
|||||||
VITE_API_BASE_URL=http://49.232.185.154:3002
|
VITE_API_BASE_URL=https://yiulix.tech
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user