Skip to content
Merged
Prev Previous commit
Next Next commit
to set only the host name
  • Loading branch information
harshithad0703 committed Sep 17, 2024
commit a274c69af258785ab05c7f50bd3add5afe7d263f
9 changes: 6 additions & 3 deletions src/base-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,12 @@ export abstract class BaseCommand<T extends typeof Command> extends Command {

this.validateRegionAndAuth();

this.developerHubBaseUrl =
this.sharedConfig.developerHubBaseUrl || this.developerHubUrl;
if (!this.developerHubBaseUrl) this.developerHubBaseUrl = getDeveloperHubUrl();
this.developerHubBaseUrl = this.sharedConfig.developerHubBaseUrl;
if (this.developerHubUrl && this.developerHubUrl.startsWith("https://")) {
this.developerHubBaseUrl = this.developerHubUrl.replace("https://", "");
}
if (!this.developerHubBaseUrl)
this.developerHubBaseUrl = getDeveloperHubUrl();
await this.initCmaSDK();
await this.initMarketplaceSDK();
}
Expand Down