fix: allow unlimited alias count (#3570)

This commit is contained in:
Erez Rokah 2020-04-09 13:33:21 +03:00 committed by GitHub
parent 3dd56125e4
commit bfb2e2bc57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ function mergePreloadedConfig(preloadedConfig, loadedConfig) {
} }
function parseConfig(data) { function parseConfig(data) {
const config = yaml.parse(data); const config = yaml.parse(data, { maxAliasCount: -1 });
if (typeof CMS_ENV === 'string' && config[CMS_ENV]) { if (typeof CMS_ENV === 'string' && config[CMS_ENV]) {
Object.keys(config[CMS_ENV]).forEach(key => { Object.keys(config[CMS_ENV]).forEach(key => {
config[key] = config[CMS_ENV][key]; config[key] = config[CMS_ENV][key];