Skip to content

Commit 622ec09

Browse files
authored
chore: rename Edge Config client (#141)
Renames the edgeClient variable to edgeConfigClient to be more descriptive and avoid confusion.
1 parent 9c379fa commit 622ec09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { init } from '@launchdarkly/vercel-server-sdk';
22
import { createClient } from '@vercel/edge-config';
33

4-
const edgeClient = createClient(process.env.EDGE_CONFIG);
5-
if (!edgeClient) {
6-
throw new Error('Edge Client could not be initialized');
4+
const edgeConfigClient = createClient(process.env.EDGE_CONFIG);
5+
if (!edgeConfigClient) {
6+
throw new Error('Edge Config client could not be initialized');
77
}
8-
export const ldEdgeClient = init(process.env.LD_CLIENT_SIDE_ID || '', edgeClient);
8+
export const ldEdgeClient = init(process.env.LD_CLIENT_SIDE_ID || '', edgeConfigClient);

0 commit comments

Comments
 (0)