Files: b817a22329dc2038d6896282542635e15961b37b / app / config.js
320 bytesRaw
1 | const { join } = require('path') |
2 | |
3 | const configDir = join(__dirname, '..', 'config') |
4 | const nodeEnv = process.env.NODE_ENV || 'development' |
5 | |
6 | const defaults = require(join(configDir, 'defaults')) |
7 | const envConfig = require(join(configDir, nodeEnv)) |
8 | |
9 | const config = { |
10 | ...defaults, |
11 | ...envConfig |
12 | } |
13 | |
14 | module.exports = config |
15 |
Built with git-ssb-web