mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-17 14:49:09 +00:00
UPDATE: Adding the cloud_environment to point to the correct nimbus in maestro
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user