fix: add ts-ignore for request.ip runtime property
Some checks are pending
Build and Deploy / build (push) Waiting to run
Some checks are pending
Build and Deploy / build (push) Waiting to run
This commit is contained in:
@@ -10,7 +10,8 @@ export async function POST(request: NextRequest) {
|
||||
const cfConnectingIp = request.headers.get("cf-connecting-ip");
|
||||
const xForwardedFor = request.headers.get("x-forwarded-for");
|
||||
const xRealIp = request.headers.get("x-real-ip");
|
||||
const nextJsIp = request.ip;
|
||||
// @ts-ignore - ip exists at runtime but not in types
|
||||
const nextJsIp = (request as any).ip;
|
||||
|
||||
// Use the first available IP in priority order
|
||||
const clientIp =
|
||||
|
||||
Reference in New Issue
Block a user