chore(mobile): 支持 --dart-define=AUTH_HOST 本地联调覆盖登录地址(默认不变)

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
编码工程师
2026-08-16 16:54:38 +08:00
co-authored by multica-agent
parent 7eab7d5e23
commit a007e8f694
+4 -1
View File
@@ -30,4 +30,7 @@ const String wsAddr = 'ws://$serverHost:$wsPort';
const String livekitUrl = 'ws://$serverHost:$livekitPort';
/// 公司账号登录后端地址,例:http://192.168.200.11:10010
const String authApiBase = 'http://$serverHost:$authApiPort';
///
/// 仅本地联调用:`--dart-define=AUTH_HOST=127.0.0.1` 可覆盖登录服务地址(OpenIM/LiveKit
/// 仍走 [serverHost]),正式打包不带该参数则与 [serverHost] 一致。
const String authApiBase = 'http://${String.fromEnvironment('AUTH_HOST', defaultValue: serverHost)}:$authApiPort';