diff --git a/src/common/context.ts b/src/common/context.ts index 812a3ee8..ce4b5e91 100644 --- a/src/common/context.ts +++ b/src/common/context.ts @@ -255,7 +255,7 @@ export class Context { isLoginRequired: true, customWorkspaceId: undefined, customEnvironment: undefined, - address: this.apiHost, + address: this.apiHost || this.resolveMainServerAddress(), }; const { customEnvironment, customWorkspaceId, isLoginRequired, address } = options