Skip to content

Commit 86d07ab

Browse files
committed
feat(config): update Telecom domain
Update Telecom apps domain to avoid synchronous BFF and Manager deploy This change is temporary and needs to be reverted after the deployment of BFF ref: #MANAGER-18470 Signed-off-by: Anoop N <[email protected]>
1 parent fb13592 commit 86d07ab

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/manager/apps/container/src/hooks/useUniverses.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const oldDomains = {
1111
EU: 'www.ovh.com/manager',
1212
CA: 'ca.ovh.com/manager',
1313
US: 'us.ovhcloud.com/manager',
14+
TELECOM: 'www.ovhtelecom.fr/manager',
1415
};
1516

1617
export async function fetchUniverses(): Promise<Universe[]> {
@@ -26,7 +27,7 @@ export async function fetchUniverses(): Promise<Universe[]> {
2627
universes.map((universe: Universe) => ({
2728
isPrimary: true, //! SECONDARY_UNIVERSES.includes(universe.universe),
2829
universe: universe.universe,
29-
url: universe.universe === 'sunrise' ? universe.url : universe.url.replace(oldDomains.EU, 'manager.eu.ovhcloud.com').replace(oldDomains.CA, 'manager.ca.ovhcloud.com').replace(oldDomains.US, 'manager.us.ovhcloud.com'),
30+
url: universe.universe === 'sunrise' ? universe.url : universe.url.replace(oldDomains.EU, 'manager.eu.ovhcloud.com').replace(oldDomains.CA, 'manager.ca.ovhcloud.com').replace(oldDomains.US, 'manager.us.ovhcloud.com').replace(oldDomains.TELECOM, 'manager.eu.ovhcloud.com'),
3031
})),
3132
);
3233
}

packages/manager/modules/config/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ const getNewUrl = (appName = '', currentValue = '', region: 'EU' | 'CA' | 'US')
126126
return currentValue;
127127
}
128128

129+
const telecomApps = ['telecom', 'telephony', 'freefax', 'overthebox', 'pack-xdsl', 'sms'];
130+
131+
if (telecomApps.indexOf(appName) !== -1) {
132+
return currentValue.replace('www.ovhtelecom.fr/manager', 'manager.eu.ovhcloud.com');
133+
}
134+
129135
const oldDomains = {
130136
EU: 'www.ovh.com/manager',
131137
CA: 'ca.ovh.com/manager',

0 commit comments

Comments
 (0)