mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user