chore: Skipping totp code for org dev (#10403)

This commit is contained in:
Leo Giovanetti authored and GitHub committed 2023-07-26 18:15:37 +02:00
1 parent 83d98a1ac4
commit dae4627ada
3 files changed
+8 -3

No files matched your search

+2
View File
@@ -34,10 +34,12 @@ export const IS_CALCOM =
WEBAPP_URL &&
(new URL(WEBAPP_URL).hostname.endsWith("cal.com") ||
new URL(WEBAPP_URL).hostname.endsWith("cal.dev") ||
new URL(WEBAPP_URL).hostname.endsWith("cal.qa") ||
new URL(WEBAPP_URL).hostname.endsWith("cal-staging.com"));
export const CONSOLE_URL =
new URL(WEBAPP_URL).hostname.endsWith(".cal.dev") ||
new URL(WEBAPP_URL).hostname.endsWith(".cal.qa") ||
new URL(WEBAPP_URL).hostname.endsWith(".cal-staging.com") ||
process.env.NODE_ENV !== "production"
? `https://console.cal.dev`