Adjust paths to config files

This commit is contained in:
Alexey Sachkov committed 2022-01-28 21:40:40 +03:00
1 parent 588bcebc87
commit 4e0ab4b393
1 file changed
+4 -2
+4 -2
View File
@@ -1,5 +1,7 @@
const path = require('path');
module.exports = require('nconf')
.argv()
.env({ lowerCase: true })
.file('environment', { file: `config/${process.env.NODE_ENV}.json` })
.file('defaults', { file: 'config/default.json' });
.file('environment', { file: path.resolve(__dirname, '../config/${process.env.NODE_ENV}.json') })
.file('default', { file: path.resolve(__dirname, '../config/default.json') });