UPDATE: Adding the cloud_environment to point to the correct nimbus in maestro

This commit is contained in:
Rafael Santana
2023-12-01 13:13:26 -03:00
parent 734978b76f
commit 820d71d16d
+8 -1
View File
@@ -49,10 +49,17 @@ class CatalogService implements OnModuleInit {
_getNimbusUrl(body) {
const customer = body.info.customer.toLowerCase();
if (process.env.ENV === 'prd') {
const cloud_environment = process.env.CLOUD_ENVIRONMENT || 'aws';
if ((process.env.ENV === 'prd') && (cloud_environment === 'aws')) {
return `https://nimbus-${customer}.dadosfera.ai`;
}
if ((process.env.ENV == 'prd' && (cloud_environment === 'mgc'))) {
return `https://nimbus-${customer}.dadosfera.com`
}
return `https://nimbus-${customer}.${process.env.ENV.replace(
'local',
'stg',