From 61ee8ae4b51d46798554cf645f8e77ea69855afa Mon Sep 17 00:00:00 2001 From: Jordan Frankfurt Date: Tue, 17 Sep 2024 16:11:53 -0500 Subject: [PATCH] be less spooky about the missing env vars --- apps/web/app/farcaster/user/route.ts | 2 +- apps/web/app/frames/signer/route.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/app/farcaster/user/route.ts b/apps/web/app/farcaster/user/route.ts index 8f3b4a74dc..27657ceeab 100644 --- a/apps/web/app/farcaster/user/route.ts +++ b/apps/web/app/farcaster/user/route.ts @@ -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); diff --git a/apps/web/app/frames/signer/route.ts b/apps/web/app/frames/signer/route.ts index d1803f9464..81c91a9ee0 100644 --- a/apps/web/app/frames/signer/route.ts +++ b/apps/web/app/frames/signer/route.ts @@ -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 = {