Skip to content

Commit ef30f33

Browse files
committed
fix: reading other config files
1 parent 1a33c5e commit ef30f33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/src/services/functions/checkConfigJsons.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const { log, HELPERS } = require('@rm/logger')
1010
* @param {string} [domain]
1111
* @returns
1212
*/
13-
function checkConfigJsons(fileName, domain = '') {
13+
function checkConfigJsons(
14+
fileName,
15+
domain = process.env.NODE_CONFIG_ENV || '',
16+
) {
1417
const generalJson = fs.existsSync(
1518
resolve(`${__dirname}/../../configs/${fileName}.json`),
1619
)

0 commit comments

Comments
 (0)