chore(client): refactor & organise config (#40875)
This commit is contained in:
committed by
GitHub
parent
c1f9cd93f5
commit
fffc0e51ec
@ -4,7 +4,6 @@ const path = require('path');
|
||||
const env = require('../../../config/env');
|
||||
const { availableLangs } = require('../../../client/i18n/allLangs');
|
||||
|
||||
const clientPath = path.resolve(__dirname, '../../../client');
|
||||
const globalConfigPath = path.resolve(__dirname, '../../../config');
|
||||
|
||||
const { FREECODECAMP_NODE_ENV } = process.env;
|
||||
@ -104,5 +103,4 @@ if (FREECODECAMP_NODE_ENV !== 'development') {
|
||||
checkCurriculumLocale();
|
||||
}
|
||||
|
||||
fs.writeFileSync(`${clientPath}/config/env.json`, JSON.stringify(env));
|
||||
fs.writeFileSync(`${globalConfigPath}/env.json`, JSON.stringify(env));
|
||||
|
Reference in New Issue
Block a user