1 | const _ = require('lodash')
|
2 |
|
3 | let config = {
|
4 |
|
5 | }
|
6 |
|
7 | switch (__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 |
|
24 | module.export = config
|