Skip to content

Instantly share code, notes, and snippets.

@asaschachar
Last active June 10, 2019 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asaschachar/5f6e3c341187d0a5336ab2f774932b60 to your computer and use it in GitHub Desktop.
Save asaschachar/5f6e3c341187d0a5336ab2f774932b60 to your computer and use it in GitHub Desktop.
const optimizelyExpress = require('@optimizely/express');
const optimizely = optimizelyExpress.initialize({
sdkKey: '<Your_SDK_Key>',
datafileOptions: {
autoUpdate: true, // Indicates feature flags will be auto-updated based on UI changes
updateInterval: 1*1000 // 1 second in milliseconds
},
logLevel: 'info', // Controls console logging. Can be 'debug', 'info', 'warn', or 'error'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment