Skip to content

Scheduling infrastructure for absolutely everyone.

Fix conditional for constant IS_SELF_HOSTED (#3329)

alannncebc098186d41
diff --git a/packages/lib/constants.ts b/packages/lib/constants.ts
index 13481faef4c..8000a43d7ab 100644
--- a/packages/lib/constants.ts
+++ b/packages/lib/constants.ts
@@ -20,7 +20,7 @@ export const CONSOLE_URL =
? `https://console.cal.dev`
: `https://console.cal.com`;
export const IS_SELF_HOSTED = !(
- new URL(WEBAPP_URL).hostname.endsWith(".cal.dev") || !!new URL(WEBAPP_URL).hostname.endsWith(".cal.com")
+ new URL(WEBAPP_URL).hostname.endsWith(".cal.dev") || new URL(WEBAPP_URL).hostname.endsWith(".cal.com")
);
export const EMBED_LIB_URL = process.env.NEXT_PUBLIC_EMBED_LIB_URL || `${WEBAPP_URL}/embed/embed.js`;
export const IS_PRODUCTION = process.env.NODE_ENV === "production";