From 2f6e9114a9af7916ede6e7f5ef341bc1acf8b77c Mon Sep 17 00:00:00 2001 From: Angelo Reale <12191809+angeloreale@users.noreply.github.com> Date: Wed, 7 Aug 2024 20:36:44 +0100 Subject: [PATCH] ar(fix) [DPCP-62]: Consolidate Domain --- src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware.ts b/src/middleware.ts index 4f8ec929..d8e78732 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -28,7 +28,7 @@ const headers: Record = { export default async function middleware(request: NextRequest) { // You could alternatively limit based on user ID or similar - const response = NextResponse.next(); + const response = next(); const ip = ipAddress(request) || '127.0.0.1'; const { success, pending, limit, reset, remaining } = await ratelimit.limit(ip);