We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 759016b commit 6cd4137Copy full SHA for 6cd4137
index.ts
@@ -1,4 +1,4 @@
1
-import * as LaunchDarkly from '@launchdarkly/node-server-sdk';
+import { init } from '@launchdarkly/node-server-sdk';
2
3
// Set sdkKey to your LaunchDarkly SDK key.
4
const sdkKey = process.env.LAUNCHDARKLY_SDK_KEY ?? 'your-sdk-key';
@@ -33,7 +33,7 @@ if (sdkKey === 'your-sdk-key' || !sdkKey) {
33
}
34
35
36
-const ldClient = LaunchDarkly.init(sdkKey);
+const ldClient = init(sdkKey);
37
38
// Set up the context properties. This context should appear on your LaunchDarkly contexts dashboard
39
// soon after you run the demo.
0 commit comments