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; }