Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🩹 Fix incorrect auth client base url (#2004)

Luke Vella78c1beffd2d7
diff --git a/packages/utils/src/absolute-url.ts b/packages/utils/src/absolute-url.ts
index 13bc5c848..abb65686d 100644
--- a/packages/utils/src/absolute-url.ts
+++ b/packages/utils/src/absolute-url.ts
@@ -22,6 +22,7 @@ export function absoluteUrl(
const baseUrl =
process.env.NEXT_PUBLIC_BASE_URL ??
getVercelUrl() ??
+ (typeof window !== "undefined" ? window.location.origin : null) ??
`http://localhost:${port}`;
const url = new URL(subpath, baseUrl);