1
0
mirror of synced 2025-12-21 19:06:49 -05:00
Files
docs/lib/feature-flags.js
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00

10 lines
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()
}
})