diff --git a/packages/ee/server/checkLicense.ts b/packages/ee/server/checkLicense.ts index a745985eb7..5629f05772 100644 --- a/packages/ee/server/checkLicense.ts +++ b/packages/ee/server/checkLicense.ts @@ -1,7 +1,7 @@ import cache from "memory-cache"; async function checkLicense(license: string): Promise { - const url = `https://cal.com/api/license?key=${license}`; + const url = `${process.env.NEXT_PUBLIC_CONSOLE_URL}/api/license?key=${license}`; const cachedResponse = cache.get(url); if (cachedResponse) { return cachedResponse;