Skip to content

Commit

Permalink
reduce repetitiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvpickering committed Aug 24, 2022
1 parent 0a6202b commit 1f6e55f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/config/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};


Expand All @@ -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
Expand All @@ -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';
}


Expand All @@ -116,7 +114,6 @@ if (config.clusterEnv === 'development') {
});

config.corsOriginUrl = 'http://localhost:5000';
config.adminSub = '0b17683f-363b-4466-b2e2-5bf11c38a76e';
}

module.exports = config;

0 comments on commit 1f6e55f

Please sign in to comment.