fix: add ts-ignore for request.ip runtime property
Some checks are pending
Build and Deploy / build (push) Waiting to run

This commit is contained in:
Unchained
2026-04-01 10:47:09 +02:00
parent 6843d2db36
commit 9124eeedc1

View File

@@ -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 =