fix: 验收包写入公司内网地址,避免 Windows 空 VITE 与 Android 假域名
Windows 补 .env.production 与 endpoints 兜底;Android 默认 host/端口改为内网,启动后重写 HttpUtil/ApiService,Urls 改为 getter。 Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
co-authored by
Cursor
multica-agent
parent
18d890ae7f
commit
bbc4dce0b6
@@ -0,0 +1,11 @@
|
||||
/** 公司内网接口。Vite 未注入 VITE_* 时不得变成 undefined。 */
|
||||
const COMPANY_HOST = "192.168.200.11";
|
||||
|
||||
export const API_URL =
|
||||
import.meta.env.VITE_API_URL || `http://${COMPANY_HOST}:10002`;
|
||||
export const WS_URL =
|
||||
import.meta.env.VITE_WS_URL || `ws://${COMPANY_HOST}:10001`;
|
||||
export const ACCOUNT_URL =
|
||||
import.meta.env.VITE_ACCOUNT_URL || `http://${COMPANY_HOST}:10010`;
|
||||
export const LIVEKIT_URL =
|
||||
import.meta.env.VITE_LIVEKIT_URL || `ws://${COMPANY_HOST}:17880`;
|
||||
Reference in New Issue
Block a user