Call prod console only on prod non staging deploys
parent
887bd66a33
commit
c8a16ce43b
|
@ -10,7 +10,9 @@ export const CAL_URL = new URL(WEBAPP_URL).hostname.endsWith(".vercel.app") ? WE
|
|||
|
||||
export const CONSOLE_URL = WEBAPP_URL.startsWith("http://localhost")
|
||||
? "http://localhost:3004"
|
||||
: `https://console.cal.${process.env.NODE_ENV === "production" ? "com" : "dev"}`;
|
||||
: new URL(WEBAPP_URL).hostname.endsWith(".cal.dev") || process.env.NODE_ENV !== "production"
|
||||
? `https://console.cal.dev`
|
||||
: `https://console.cal.com`;
|
||||
export const EMBED_LIB_URL = process.env.NEXT_PUBLIC_EMBED_LIB_URL || `${WEBAPP_URL}/embed/embed.js`;
|
||||
export const IS_PRODUCTION = process.env.NODE_ENV === "production";
|
||||
export const TRIAL_LIMIT_DAYS = 14;
|
||||
|
|
Loading…
Reference in New Issue