Fix constants !!
parent
8adce1b65f
commit
ff8dc3cb0f
|
@ -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") ||
|
||||||
|
|
Loading…
Reference in New Issue