Compare commits

...

1 Commits

Author SHA1 Message Date
Unchained
9124eeedc1 fix: add ts-ignore for request.ip runtime property
Some checks are pending
Build and Deploy / build (push) Waiting to run
2026-04-01 10:47:09 +02:00

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 =