Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

feature-flags.js 355 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
  1. const featureFlags = require('../feature-flags')
  2. // add feature flags as environment variables
  3. Object.entries(featureFlags).forEach(([feature, value]) => {
  4. if (!Object.prototype.hasOwnProperty.call(process.env, feature) && value) {
  5. // process.env treats all values as strings so let's be explicit
  6. process.env[feature] = value.toString()
  7. }
  8. })
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...