Adds API_URL constant

This commit is contained in:
zomars 2022-11-28 20:27:48 -07:00
parent 5366dbbb5e
commit b5aa99a17c
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ 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
export const CAL_URL = new URL(WEBAPP_URL).hostname.endsWith(".vercel.app") ? WEBAPP_URL : WEBSITE_URL;
export const API_URL = process.env.API_URL || "http://localhost:3002";
export const CONSOLE_URL =
new URL(WEBAPP_URL).hostname.endsWith(".cal.dev") || process.env.NODE_ENV !== "production"
? `https://console.cal.dev`

View File

@ -174,6 +174,7 @@
"globalDependencies": [
"$ANALYZE",
"$API_KEY_PREFIX",
"$API_URL",
"$APP_USER_NAME",
"$CALCOM_LICENSE_KEY",
"$CALCOM_TELEMETRY_DISABLED",