fix: use same-origin default for auth URL instead of localhost

fix: use same-origin default for auth URL instead of localhost
This commit is contained in:
cartsnitch-engineer[bot]
2026-03-30 16:07:28 +00:00
committed by GitHub
+1 -1
View File
@@ -28,7 +28,7 @@ const displayNameMapper: BetterFetchPlugin = {
}
export const authClient = createAuthClient({
baseURL: import.meta.env.VITE_AUTH_URL ?? "http://localhost:3001",
baseURL: import.meta.env.VITE_AUTH_URL || "",
basePath: "/auth",
fetchPlugins: [displayNameMapper],
})