diff --git a/packages/features/ee/common/server/checkLicense.ts b/packages/features/ee/common/server/checkLicense.ts index bbf2953e4b..961c66e2ce 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 { 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) {