chore(mobile): 支持 --dart-define=AUTH_HOST 本地联调覆盖登录地址(默认不变)
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -30,4 +30,7 @@ const String wsAddr = 'ws://$serverHost:$wsPort';
|
|||||||
const String livekitUrl = 'ws://$serverHost:$livekitPort';
|
const String livekitUrl = 'ws://$serverHost:$livekitPort';
|
||||||
|
|
||||||
/// 公司账号登录后端地址,例:http://192.168.200.11:10010
|
/// 公司账号登录后端地址,例: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';
|
||||||
|
|||||||
Reference in New Issue
Block a user