docs/lib/feature-flags.js

10 строки
355 B
JavaScript
Исходник Обычный вид История

const featureFlags = require('../feature-flags')
// add feature flags as environment variables
Object.entries(featureFlags).forEach(([feature, value]) => {
if (!Object.prototype.hasOwnProperty.call(process.env, feature) && value) {
// process.env treats all values as strings so let's be explicit
process.env[feature] = value.toString()
}
})