1

I'm using the React SDK for LaunchDarkly and I need to initialize it just for certain environments. For example I need to skip LaunchDarkly initialization for localrun. Is there a way to do it?

This is the way I initialize it:

export default withLDProvider({
  clientSideID: config.launchDarkly.envId',
  options: {
    streamUrl: `https://clientstream-${config.launchDarkly.domain}`,
    baseUrl: `https://app-${config.launchDarkly.domain}`,
    eventsUrl: `https://events-${config.launchDarkly.domain}`,
  },
})(App);
stratdev
  • 135
  • 1
  • 7

1 Answers1

2

Try setting envId to undefined for local and only set it accordingly in higher environments

g.p
  • 312
  • 1
  • 5