forked from crowetic/commerce
Removed bootstrap.js
This commit is contained in:
parent
4c156422a6
commit
764e0db322
11
framework/commerce/utils/bootstrap.js
vendored
11
framework/commerce/utils/bootstrap.js
vendored
@ -1,11 +0,0 @@
|
|||||||
module.exports = ({ features }) => {
|
|
||||||
let output = {
|
|
||||||
env: {},
|
|
||||||
}
|
|
||||||
if (!!Object.keys(features).length) {
|
|
||||||
Object.keys(features).map(
|
|
||||||
(r) => (output.env[`COMMERCE_${r.toUpperCase()}_ENABLED`] = features[r])
|
|
||||||
)
|
|
||||||
}
|
|
||||||
return output
|
|
||||||
}
|
|
@ -1,10 +1,3 @@
|
|||||||
// const providerConfig = require('./framework/bigcommerce/config.json')
|
|
||||||
// const providerNextConfig = require('./framework/bigcommerce/next.config')
|
|
||||||
// const bootstrap = require('./framework/commerce/utils/bootstrap')
|
|
||||||
// const d = require('deepmerge')
|
|
||||||
|
|
||||||
// module.exports = d(providerNextConfig, bootstrap(providerConfig))
|
|
||||||
|
|
||||||
const withCommerceConfig = require('./framework/commerce/with-config')
|
const withCommerceConfig = require('./framework/commerce/with-config')
|
||||||
|
|
||||||
const commerce = { provider: 'bigcommerce' }
|
const commerce = { provider: 'bigcommerce' }
|
||||||
@ -45,5 +38,3 @@ module.exports = withCommerceConfig({
|
|||||||
].filter((x) => x)
|
].filter((x) => x)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log('RESULT', module.exports)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user