Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const loadConfig = async () => {
await loadEnvFile('./.env');
verifyRequiredEnvironmentVariables();
const configFromFile = loadConfigYmlFile(process.env.DEPLOYMENT);
const buckets = await getJsonS3Object(
configFromFile.bucket,
`${configFromFile.stackName}/workflows/buckets.json`
);
return { ...configFromFile, buckets };
};