fix: resolve VITE_API_URL hardcoding that breaks CI E2E (GRO-1280) #415

Merged
groombook-engineer[bot] merged 21 commits from flea-flicker/fix-cors-e2e-vite-api-url into dev 2026-05-14 20:11:31 +00:00
Showing only changes of commit 7339d51acf - Show all commits
+1 -1
View File
@@ -1,7 +1,7 @@
import { createAuthClient } from "better-auth/react";
export const authClient = createAuthClient({
baseURL: import.meta.env.VITE_API_URL ?? "",
baseURL: import.meta.env.VITE_API_URL || window.location.origin,
});
export const { signIn, signOut, useSession, changePassword } = authClient;