Skip to content

Commit

Permalink
feat: make node example more consistent (#8111)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus authored Sep 6, 2024
1 parent b6e22d6 commit 028cf06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/component/onboarding/sdkSnippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ dotnet add package Newtonsoft.Json`,
};

export const initializeCodeSnippets: Record<SdkName, string> = {
Node: `import { initialize } from 'unleash-client';
Node: `const { initialize } = require('unleash-client');
const unleash = initialize({
url: '<YOUR_API_URL>',
appName: 'unleash-onboarding-node',
customHeaders: { Authorization: '<YOUR_API_TOKEN>' },
metricsInterval: 5000,
});
`,
Golang: `import (
Expand Down

0 comments on commit 028cf06

Please sign in to comment.