MCPcopy Create free account
hub / github.com/vercel/examples / initialize

Function initialize

toolbar/toolbar-launchdarkly/app/launchdarkly.ts:4–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2let launchDarklyClient: LaunchDarkly.LDClient
3
4async function initialize() {
5 launchDarklyClient = LaunchDarkly.init(process.env.LAUNCHDARKLY_SDK_KEY!)
6 return launchDarklyClient.waitForInitialization()
7}
8
9export async function getClient(): Promise<LaunchDarkly.LDClient> {
10 if (launchDarklyClient) {

Callers 1

getClientFunction · 0.85

Calls 1

initMethod · 0.80

Tested by

no test coverage detected