mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
22 lines
552 B
JavaScript
22 lines
552 B
JavaScript
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.BCH_DEX || 'development'
|
|
console.log(`Loading config for this environment: ${env}`)
|
|
|
|
let config = development
|
|
if (env === 'test') {
|
|
config = test
|
|
} else if (env === 'prod') {
|
|
config = production
|
|
}
|
|
|
|
// const importStr = `./env/${env}.js`
|
|
// console.log('importStr: ', importStr)
|
|
// import config from importStr
|
|
|
|
export default Object.assign({}, common, config)
|