mirror of
https://github.com/vercel/commerce.git
synced 2025-03-31 01:05:53 +00:00
12 lines
249 B
JavaScript
12 lines
249 B
JavaScript
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
|
|
}
|