mirror of
https://github.com/Permissionless-Software-Foundation/x402-base-facilitator.git
synced 2026-09-21 16:52:01 -07:00
21 lines
499 B
JavaScript
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)
|