Skip to content

Commit

Permalink
be less spooky about the missing env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
JFrankfurt committed Sep 17, 2024
1 parent ef0cfd1 commit 61ee8ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/web/app/farcaster/user/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NextResponse } from 'next/server';
const API_URL = 'https://api.neynar.com/v2/farcaster/user/bulk';
const API_KEY = process.env.NEYNAR_API_KEY;

if (!API_KEY) throw new Error('NEYNAR_API_KEY required');
if (!API_KEY) console.error('NEYNAR_API_KEY required');

export async function GET(request: Request) {
const { searchParams } = new URL(request.url);
Expand Down
4 changes: 2 additions & 2 deletions apps/web/app/frames/signer/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { mnemonicToAccount } from 'viem/accounts';

const FARCASTER_DEVELOPER_FID = process.env.FARCASTER_DEVELOPER_FID;
if (!FARCASTER_DEVELOPER_FID) {
throw new Error('FARCASTER_DEVELOPER_FID is required to facilitate frame interactivity');
console.error('FARCASTER_DEVELOPER_FID is required to facilitate frame interactivity');
}
const FARCASTER_DEVELOPER_MNEMONIC = process.env.FARCASTER_DEVELOPER_MNEMONIC;
if (!FARCASTER_DEVELOPER_MNEMONIC) {
throw new Error('FARCASTER_DEVELOPER_MNEMONIC is required to facilitate frame interactivity');
console.error('FARCASTER_DEVELOPER_MNEMONIC is required to facilitate frame interactivity');
}

const SIGNED_KEY_REQUEST_VALIDATOR_EIP_712_DOMAIN = {
Expand Down

0 comments on commit 61ee8ae

Please sign in to comment.