Files
x402-base-facilitator/config/index.js
T
2022-09-08 08:58:39 -07:00

21 lines
499 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.SVC_ENV || 'development'
let config = development
if (env === 'test') {
config = test
} else if (env === 'production') {
config = production
}
// const importStr = `./env/${env}.js`
// console.log('importStr: ', importStr)
// import config from importStr
export default Object.assign({}, common, config)