We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8461b82 commit ca20691Copy full SHA for ca20691
1 file changed
packages/lib/constants.ts
@@ -54,9 +54,9 @@ export const CONSOLE_URL =
54
process.env.NODE_ENV !== "production"
55
? `https://console.cal.dev`
56
: `https://console.cal.com`;
57
-export const IS_SELF_HOSTED = !(
58
- new URL(WEBAPP_URL).hostname.endsWith(".cal.dev") || new URL(WEBAPP_URL).hostname.endsWith(".cal.com")
59
-);
+const CAL_DOMAINS = [".cal.com", ".cal.dev", ".cal.eu", ".cal.qa"];
+const WEBAPP_HOSTNAME = new URL(WEBAPP_URL).hostname;
+export const IS_SELF_HOSTED = !CAL_DOMAINS.some((domain) => WEBAPP_HOSTNAME.endsWith(domain));
60
export const EMBED_LIB_URL = process.env.NEXT_PUBLIC_EMBED_LIB_URL || `${WEBAPP_URL}/embed/embed.js`;
61
export const TRIAL_LIMIT_DAYS = 14;
62
export const MAX_SEATS_PER_TIME_SLOT = 1000;
0 commit comments