From 77fb687fc870190ba27cadd12a1e15152f36f51b Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sat, 23 Apr 2022 16:06:21 +0800 Subject: [PATCH] rename Config*.js to envar-base-*.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4da59ff..f48895c 100644 --- a/index.js +++ b/index.js @@ -75,7 +75,7 @@ module.exports = { return global.envar }, - getDynamicConfig(dynamicConfigFile='config-dynamic.js') { // dynamicConfigFile should be absolute or relative to the node process's dir. + getDynamicConfig(dynamicConfigFile='envar-base-dynamic.js') { // dynamicConfigFile should be absolute or relative to the node process's dir. const fullpath = path.join(process.cwd(), dynamicConfigFile) if (fs.existsSync(fullpath)) { delete require.cache[require.resolve(fullpath)] // delete require.cache[fullpath] 不起作用