Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const LaunchDarkly = require('@launchdarkly/node-server-sdk');

// Set sdkKey to your LaunchDarkly SDK key.
const sdkKey = process.env.LAUNCHDARKLY_SDK_KEY ?? 'your-sdk-key';
const sdkKey = process.env.LAUNCHDARKLY_SDK_KEY ?? '';

// Set featureFlagKey to the feature flag key you want to evaluate.
const featureFlagKey = process.env.LAUNCHDARKLY_FLAG_KEY ?? 'sample-feature';
Expand All @@ -28,7 +28,7 @@ function printValueAndBanner(flagValue) {
}

if (!sdkKey) {
console.log('*** Please edit index.js to set sdkKey to your LaunchDarkly SDK key first.');
console.log('*** Please set LAUNCHDARKLY_SDK_KEY to your LaunchDarkly SDK key, or edit index.js to set sdkKey.');
process.exit(1);
}

Expand Down
Loading