Files
ipfs-bch-wallet-consumer/config/index.js
T

22 lines
552 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'
const env = process.env.SVC_ENV || '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
}
// const importStr = `./env/${env}.js`
// console.log('importStr: ', importStr)
// import config from importStr
export default Object.assign({}, common, config)