fix????
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
7960e5a54f
commit
8668dab43b
@ -21,14 +21,7 @@ const aj = arcjet({
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
export default async function middleware(request: NextRequest) {
|
export default async function middleware(req: NextRequest) {
|
||||||
const req = {
|
|
||||||
...request,
|
|
||||||
ip: request.headers.get("x-real-ip"),
|
|
||||||
} as NextRequest;
|
|
||||||
|
|
||||||
console.log(req.ip);
|
|
||||||
|
|
||||||
const decision = await aj.protect(req);
|
const decision = await aj.protect(req);
|
||||||
console.log(decision);
|
console.log(decision);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user