Skip to content

Instantly share code, notes, and snippets.

@fernyettheplant
Created July 21, 2020 15:27
Show Gist options
  • Save fernyettheplant/d90f95b77e9d0e63257080f9a928fba3 to your computer and use it in GitHub Desktop.
Save fernyettheplant/d90f95b77e9d0e63257080f9a928fba3 to your computer and use it in GitHub Desktop.
const LaunchDarkly = require('launchdarkly-node-server-sdk')
const ldClient = LaunchDarkly.init('SDK_KEY')
const ready = ldClient.waitForInitialization()
module.exports.myhandler = function (event, context, cb) {
ready.then((client) => {
// Check yout FF here
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment