refactor: move env vars to constants file

This commit is contained in:
lucas-neynar
2025-05-05 15:52:38 -07:00
parent 40e40543cd
commit 5f0fd8876a
10 changed files with 47 additions and 39 deletions

View File

@@ -1,4 +1,5 @@
import { NeynarAPIClient, Configuration } from '@neynar/nodejs-sdk';
import { APP_URL } from './constants';
let neynarClient: NeynarAPIClient | null = null;
@@ -41,7 +42,7 @@ export async function sendNeynarFrameNotification({
const notification = {
title,
body,
target_url: process.env.NEXT_PUBLIC_URL!,
target_url: APP_URL,
};
const result = await client.publishFrameNotifications({