From ac90ed3fae43de308d1097a4c8402c2a72bd7795 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Thu, 3 Oct 2024 08:58:22 -0400 Subject: [PATCH] fix??? Signed-off-by: Xe Iaso --- middleware.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware.ts b/middleware.ts index 399756b..e55c76f 100644 --- a/middleware.ts +++ b/middleware.ts @@ -22,13 +22,13 @@ const aj = arcjet({ }); export default async function middleware(request: NextRequest) { - console.log(request.ip); - const req = { ...request, ip: request.headers.get("x-real-ip"), } as NextRequest; + console.log(req.ip); + const decision = await aj.protect(req); if (