fix: tolerate empty NEXT_PUBLIC_APP_URL during production build
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ import { nextCookies } from "better-auth/next-js";
|
||||
import { prisma } from "@/lib/db";
|
||||
import { sendEmail, emailLayout } from "@/lib/email";
|
||||
|
||||
const appUrl = process.env.NEXT_PUBLIC_APP_URL ?? "http://localhost:3000";
|
||||
const appUrl = process.env.NEXT_PUBLIC_APP_URL || "http://localhost:3000";
|
||||
|
||||
const googleConfigured = !!(process.env.GOOGLE_CLIENT_ID && process.env.GOOGLE_CLIENT_SECRET);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user