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 (