Files
bch-dex/config/index.js
T

18 lines
439 B
JavaScript
Raw Normal View History

2022-09-08 08:58:39 -07:00
import common from './env/common.js'
import development from './env/development.js'
import production from './env/production.js'
import test from './env/test.js'
2022-02-23 05:51:12 -08:00
2022-06-29 16:29:28 -07:00
const env = process.env.BCH_DEX || 'development'
console.log(`Loading config for this environment: ${env}`)
2022-09-08 08:58:39 -07:00
let config = development
if (env === 'test') {
config = test
} else if (env === 'prod') {
2022-09-08 08:58:39 -07:00
config = production
}
export default Object.assign({}, common, config)