mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-11-21 10:18:01 -05:00
refactor: move env vars to constants file
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user