From 898422571f75a0d74dbcfe9af91867bcaf319e7c Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Sun, 10 May 2026 21:41:05 -0400 Subject: [PATCH] fix: remove hardcoded baseURL from auth client NEXT_PUBLIC_ vars are baked in at build time, so NEXT_PUBLIC_APP_URL=localhost was being embedded in the bundle. Removing baseURL lets better-auth use window.location.origin automatically, which works correctly on any domain. Co-Authored-By: Claude Sonnet 4.6 --- src/lib/auth-client.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/auth-client.ts b/src/lib/auth-client.ts index 8146bcd..3b7bde8 100644 --- a/src/lib/auth-client.ts +++ b/src/lib/auth-client.ts @@ -7,6 +7,5 @@ import { genericOAuthClient } from "better-auth/client/plugins"; * Auth client configuration */ export const authClient = createAuthClient({ - baseURL: process.env.NEXT_PUBLIC_APP_URL, plugins: [genericOAuthClient()], });