From 76de1d0a1689a8a0dd2ce05092329f830f96cd13 Mon Sep 17 00:00:00 2001 From: Angelo Reale <12191809+angeloreale@users.noreply.github.com> Date: Sat, 31 Aug 2024 15:45:22 +0100 Subject: [PATCH] ar(fix) disable kv (cost) --- src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware.ts b/src/middleware.ts index 18ab09a..5174e0c 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -37,9 +37,9 @@ export default async function middleware(request: NextRequest) { if (origin !== process.env.MAIN_URL) { headers['Access-Control-Allow-Origin'] = allowedOrigins[origin] || 'https://www.dreampip.com'; } + const response = next(); // You could alternatively limit based on user ID or similar - // const response = next(); // const ip = ipAddress(request) || '127.0.0.1'; // const { success, pending, limit, reset, remaining } = await ratelimit.limit(ip);