0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00
Files
homebrewery/server/config.js
2022-01-28 21:40:40 +03:00

8 lines
299 B
JavaScript

const path = require('path');
module.exports = require('nconf')
.argv()
.env({ lowerCase: true })
.file('environment', { file: path.resolve(__dirname, '../config/${process.env.NODE_ENV}.json') })
.file('default', { file: path.resolve(__dirname, '../config/default.json') });