feat: update config for neynar client

This commit is contained in:
lucas-neynar 2025-03-17 13:07:36 -07:00
parent 27abf08ed2
commit d483780019
No known key found for this signature in database

View File

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