diff --git a/middleware.ts b/middleware.ts index db12b560..b87799f0 100644 --- a/middleware.ts +++ b/middleware.ts @@ -44,6 +44,8 @@ export async function middleware(req: NextRequest, context: NextFetchEvent) { licenseKeys?.includes(apiKey.toLowerCase()) ) { const { remaining } = await ratelimit.limit(apiKey.toLowerCase()); + // TODO: log to hit licenseKey + console.log(`!!!!!!!!! {short-xxxx-licenseKey}, remaining: ${remaining} ========`); if (remaining === 0) { return NextResponse.redirect(new URL("/shop", req.url)); }