From 02a3b264dd25cfcd16ba1eee34ff794f13452695 Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Thu, 24 Oct 2024 19:56:31 +0300 Subject: [PATCH] demo: fix invite link --- demo/nextjs/lib/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/nextjs/lib/auth.ts b/demo/nextjs/lib/auth.ts index 17f4fd680..e41b51663 100644 --- a/demo/nextjs/lib/auth.ts +++ b/demo/nextjs/lib/auth.ts @@ -95,9 +95,9 @@ export const auth = betterAuth({ process.env.NODE_ENV === "development" ? `http://localhost:3000/accept-invitation/${data.id}` : `https://${ + process.env.BETTER_AUTH_URL || process.env.NEXT_PUBLIC_APP_URL || - process.env.VERCEL_URL || - process.env.BETTER_AUTH_URL + process.env.VERCEL_URL }/accept-invitation/${data.id}`, }), });