Skip to content

Commit

Permalink
log instead of throwing error
Browse files Browse the repository at this point in the history
  • Loading branch information
dead8309 committed Jan 24, 2025
1 parent c28006a commit 7a0350e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { AppType } from "@repo/api";
import { hc } from "hono/client";

if (!process.env.NEXT_PUBLIC_SERVER_URL) {
throw new Error("NEXT_PUBLIC_SERVER_URL is not defined");
console.error("NEXT_PUBLIC_SERVER_URL is not defined");
}

export const client = hc<AppType>(process.env.NEXT_PUBLIC_SERVER_URL as string);
export const client = hc<AppType>(process.env.NEXT_PUBLIC_SERVER_URL || "");

0 comments on commit 7a0350e

Please sign in to comment.