Don't fail on missing config file

Fixes #4106
This commit is contained in:
rijkvanzanten
2021-02-16 17:14:24 -05:00
parent 5aad79dc5a
commit ee96c99ec5

View File

@@ -84,6 +84,8 @@ export default env;
function getEnv() {
const configPath = process.env.CONFIG_PATH || defaults.CONFIG_PATH;
if (fs.existsSync(configPath) === false) return {};
const fileExt = path.extname(configPath).toLowerCase();
if (fileExt === '.js') {