fix???
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
5213bec5ce
commit
ac90ed3fae
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user