Skip to content

Commit 022c91e

Browse files
Merge pull request #1523 from contentstack/fix/region-properties
fix region properties
2 parents 39fdf51 + 673b766 commit 022c91e

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

packages/contentstack-command/src/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,18 @@ abstract class ContentstackCommand extends Command {
9393
}
9494
throw new CLIError('No token found');
9595
}
96+
97+
get developerHubUrl() {
98+
return this.region.developerHubUrl;
99+
}
100+
101+
get launchHubUrl() {
102+
return this.region.launchHubUrl;
103+
}
104+
105+
get personalizeUrl() {
106+
return this.region.personalizeUrl;
107+
}
96108
}
97109

98110
module.exports = {

packages/contentstack-command/src/interfaces/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ export interface Region {
33
cma: string;
44
cda: string;
55
uiHost: string;
6+
developerHubUrl: string;
7+
launchHubUrl: string;
8+
personalizeUrl: string;
69
}

0 commit comments

Comments
 (0)