UNPKG

328 BJavaScriptView Raw
1const _ = require('lodash')
2
3let config = {
4
5}
6
7switch (__ENV__) {
8 case 'development':
9 _.extend(config, {
10
11 })
12 break
13
14 case 'production':
15 _.extend(config, {
16
17 })
18 break
19
20 default:
21 console.error(`Environment '${__ENV__}' does not exist. Could not connect to the database.`)
22}
23
24module.export = config