0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

Merge branch 'private/asachkov/refactor-config-initialization' of https://github.com/AlexeySachkov/homebrewery into pr/1981

This commit is contained in:
Trevor Buckner
2022-01-29 21:36:10 -05:00

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') });