From d483780019299f776c95248c817ba499a74adce9 Mon Sep 17 00:00:00 2001 From: lucas-neynar Date: Mon, 17 Mar 2025 13:07:36 -0700 Subject: [PATCH] feat: update config for neynar client --- src/lib/neynar.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/neynar.ts b/src/lib/neynar.ts index 5cba8f2..44b56d9 100644 --- a/src/lib/neynar.ts +++ b/src/lib/neynar.ts @@ -1,4 +1,4 @@ -import { NeynarAPIClient } from '@neynar/nodejs-sdk'; +import { NeynarAPIClient, Configuration } from '@neynar/nodejs-sdk'; let neynarClient: NeynarAPIClient | null = null; @@ -11,7 +11,8 @@ export function getNeynarClient() { if (!apiKey) { throw new Error('NEYNAR_API_KEY not configured'); } - neynarClient = new NeynarAPIClient(apiKey); + const config = new Configuration({ apiKey }); + neynarClient = new NeynarAPIClient(config); } return neynarClient; }