From b5aa99a17c8f3293590d6a158dd52e2a3935caa2 Mon Sep 17 00:00:00 2001 From: zomars Date: Mon, 28 Nov 2022 20:27:48 -0700 Subject: [PATCH] Adds API_URL constant --- packages/lib/constants.ts | 1 + turbo.json | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/lib/constants.ts b/packages/lib/constants.ts index 614ea63782..da84babf85 100644 --- a/packages/lib/constants.ts +++ b/packages/lib/constants.ts @@ -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` diff --git a/turbo.json b/turbo.json index c045dc9626..a895c7e050 100644 --- a/turbo.json +++ b/turbo.json @@ -174,6 +174,7 @@ "globalDependencies": [ "$ANALYZE", "$API_KEY_PREFIX", + "$API_URL", "$APP_USER_NAME", "$CALCOM_LICENSE_KEY", "$CALCOM_TELEMETRY_DISABLED",