From aa1370b9c759ae515ab9632cacd432d8f82d3ddb Mon Sep 17 00:00:00 2001 From: Leo Giovanetti Date: Tue, 11 Jul 2023 18:21:30 -0300 Subject: [PATCH] Enabling console for staging (#10072) --- packages/lib/constants.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/lib/constants.ts b/packages/lib/constants.ts index ea73c0b90c..50b9d1f4e0 100644 --- a/packages/lib/constants.ts +++ b/packages/lib/constants.ts @@ -30,7 +30,9 @@ export const IS_CALCOM = new URL(WEBAPP_URL).hostname.endsWith("cal-staging.com")); export const CONSOLE_URL = - new URL(WEBAPP_URL).hostname.endsWith(".cal.dev") || process.env.NODE_ENV !== "production" + new URL(WEBAPP_URL).hostname.endsWith(".cal.dev") || + new URL(WEBAPP_URL).hostname.endsWith(".cal-staging.com") || + process.env.NODE_ENV !== "production" ? `https://console.cal.dev` : `https://console.cal.com`; export const IS_SELF_HOSTED = !(