Fix constants !!

pull/11421/merge^2
Sean Brydon 2023-09-22 08:52:31 +01:00
parent 8adce1b65f
commit ff8dc3cb0f
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export const SENDER_NAME = process.env.NEXT_PUBLIC_SENDGRID_SENDER_NAME || "Cal.
export const CAL_URL = new URL(WEBAPP_URL).hostname.endsWith(".vercel.app") ? WEBAPP_URL : WEBSITE_URL; export const CAL_URL = new URL(WEBAPP_URL).hostname.endsWith(".vercel.app") ? WEBAPP_URL : WEBSITE_URL;
export const IS_CALCOM = export const IS_CALCOM =
!!WEBAPP_URL && WEBAPP_URL &&
(new URL(WEBAPP_URL).hostname.endsWith("cal.com") || (new URL(WEBAPP_URL).hostname.endsWith("cal.com") ||
new URL(WEBAPP_URL).hostname.endsWith("cal.dev") || new URL(WEBAPP_URL).hostname.endsWith("cal.dev") ||
new URL(WEBAPP_URL).hostname.endsWith("cal.qa") || new URL(WEBAPP_URL).hostname.endsWith("cal.qa") ||