diff --git a/middleware.ts b/middleware.ts index 6c6185eb..db12b560 100644 --- a/middleware.ts +++ b/middleware.ts @@ -39,6 +39,7 @@ export async function middleware(req: NextRequest, context: NextFetchEvent) { // licenseKeys if ( + apiKey && !apiKey.startsWith(`sk-`) && licenseKeys?.includes(apiKey.toLowerCase()) ) {