diff --git a/src/config/default-config.js b/src/config/default-config.js index ec36e9df0..e50767e99 100644 --- a/src/config/default-config.js +++ b/src/config/default-config.js @@ -79,7 +79,7 @@ const config = { pipelineInstanceConfigUrl: `https://raw.githubusercontent.com/${githubOrganisationName}/iac/master/releases/production/pipeline.yaml`, cachingEnabled: true, corsOriginUrl: `https://${domainName}`, - adminSub: ADMIN_SUB[process.env.AWS_ACCOUNT_ID], + adminSub: ADMIN_SUB[process.env.AWS_ACCOUNT_ID] || '0b17683f-363b-4466-b2e2-5bf11c38a76e', }; @@ -89,7 +89,6 @@ if (config.clusterEnv === 'staging' && config.sandboxId === 'default') { config.pipelineInstanceConfigUrl = `https://raw.githubusercontent.com/${githubOrganisationName}/iac/master/releases/staging/pipeline.yaml`; config.cachingEnabled = false; config.corsOriginUrl = `https://ui-default.${domainName}`; - config.adminSub = '0b17683f-363b-4466-b2e2-5bf11c38a76e'; } // We are in user staging environments @@ -98,7 +97,6 @@ if (config.clusterEnv === 'staging' && config.sandboxId !== 'default') { config.pipelineInstanceConfigUrl = `https://raw.githubusercontent.com/${githubOrganisationName}/iac/master/releases/staging/${config.sandboxId}.yaml`; config.cachingEnabled = false; config.corsOriginUrl = `https://ui-${config.sandboxId}.${domainName}`; - config.adminSub = '0b17683f-363b-4466-b2e2-5bf11c38a76e'; } @@ -116,7 +114,6 @@ if (config.clusterEnv === 'development') { }); config.corsOriginUrl = 'http://localhost:5000'; - config.adminSub = '0b17683f-363b-4466-b2e2-5bf11c38a76e'; } module.exports = config;