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 9c379fa commit 622ec09Copy full SHA for 622ec09
packages/sdk/vercel/examples/complete/lib/ldEdgeClient.ts
@@ -1,8 +1,8 @@
1
import { init } from '@launchdarkly/vercel-server-sdk';
2
import { createClient } from '@vercel/edge-config';
3
4
-const edgeClient = createClient(process.env.EDGE_CONFIG);
5
-if (!edgeClient) {
6
- throw new Error('Edge Client could not be initialized');
+const edgeConfigClient = createClient(process.env.EDGE_CONFIG);
+if (!edgeConfigClient) {
+ throw new Error('Edge Config client could not be initialized');
7
}
8
-export const ldEdgeClient = init(process.env.LD_CLIENT_SIDE_ID || '', edgeClient);
+export const ldEdgeClient = init(process.env.LD_CLIENT_SIDE_ID || '', edgeConfigClient);
0 commit comments