licenseCheck fixes
This commit is contained in:
1 parent
c8a16ce43b
commit
fd8e4ef890
1 file changed
+4
-5
@@ -8,11 +8,10 @@ export const WEBSITE_URL = process.env.NEXT_PUBLIC_WEBSITE_URL || "https://cal.c
|
|||||||
// As website isn't setup for preview environments, use the webapp url instead
|
// As website isn't setup for preview environments, use the webapp url instead
|
||||||
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 CONSOLE_URL = WEBAPP_URL.startsWith("http://localhost")
|
export const CONSOLE_URL =
|
||||||
? "http://localhost:3004"
|
new URL(WEBAPP_URL).hostname.endsWith(".cal.dev") || process.env.NODE_ENV !== "production"
|
||||||
: new URL(WEBAPP_URL).hostname.endsWith(".cal.dev") || process.env.NODE_ENV !== "production"
|
? `https://console.cal.dev`
|
||||||
? `https://console.cal.dev`
|
: `https://console.cal.com`;
|
||||||
: `https://console.cal.com`;
|
|
||||||
export const EMBED_LIB_URL = process.env.NEXT_PUBLIC_EMBED_LIB_URL || `${WEBAPP_URL}/embed/embed.js`;
|
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 IS_PRODUCTION = process.env.NODE_ENV === "production";
|
||||||
export const TRIAL_LIMIT_DAYS = 14;
|
export const TRIAL_LIMIT_DAYS = 14;
|
||||||
|
|||||||
Reference in new issue
Block a user