From 8668dab43b58fb392fb9c88abd44d8ecf2e941a0 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Thu, 3 Oct 2024 09:14:38 -0400 Subject: [PATCH] fix???? Signed-off-by: Xe Iaso --- middleware.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/middleware.ts b/middleware.ts index 3695e8a..ab4ab5f 100644 --- a/middleware.ts +++ b/middleware.ts @@ -21,14 +21,7 @@ const aj = arcjet({ ], }); -export default async function middleware(request: NextRequest) { - const req = { - ...request, - ip: request.headers.get("x-real-ip"), - } as NextRequest; - - console.log(req.ip); - +export default async function middleware(req: NextRequest) { const decision = await aj.protect(req); console.log(decision);