mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
feat: make node example more consistent (#8111)
This commit is contained in:
parent
b6e22d6178
commit
028cf06f6c
@ -29,12 +29,13 @@ dotnet add package Newtonsoft.Json`,
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const initializeCodeSnippets: Record<SdkName, string> = {
|
export const initializeCodeSnippets: Record<SdkName, string> = {
|
||||||
Node: `import { initialize } from 'unleash-client';
|
Node: `const { initialize } = require('unleash-client');
|
||||||
|
|
||||||
const unleash = initialize({
|
const unleash = initialize({
|
||||||
url: '<YOUR_API_URL>',
|
url: '<YOUR_API_URL>',
|
||||||
appName: 'unleash-onboarding-node',
|
appName: 'unleash-onboarding-node',
|
||||||
customHeaders: { Authorization: '<YOUR_API_TOKEN>' },
|
customHeaders: { Authorization: '<YOUR_API_TOKEN>' },
|
||||||
|
metricsInterval: 5000,
|
||||||
});
|
});
|
||||||
`,
|
`,
|
||||||
Golang: `import (
|
Golang: `import (
|
||||||
|
Loading…
Reference in New Issue
Block a user