Skip to content

Scheduling infrastructure for absolutely everyone.

Unlicensed should return false, not error

Alex van Andele772b4203eb3
diff --git a/packages/features/ee/common/server/checkLicense.ts b/packages/features/ee/common/server/checkLicense.ts
index bbf2953e4b6..961c66e2cef 100644
--- a/packages/features/ee/common/server/checkLicense.ts
+++ b/packages/features/ee/common/server/checkLicense.ts
@@ -20,6 +20,7 @@ const schemaLicenseKey = z
async function checkLicense(license: string): Promise<boolean> {
if (!!process.env.NEXT_PUBLIC_IS_E2E) return true;
+ if (!license) return false;
const url = `${CONSOLE_URL}/api/license?key=${schemaLicenseKey.parse(license)}`;
const cachedResponse = cache.get(url);
if (cachedResponse) {