fix: avoid blocking the request if it does not have an associated ip (#1540)

This commit is contained in:
Shubham Palriwala
2023-11-06 13:15:32 +05:30
committed by GitHub
parent 9dc7d542be
commit 3a9ca829cc

View File

@@ -30,9 +30,8 @@ export async function middleware(request: NextRequest) {
return NextResponse.json({ error: "Too many requests, Please try after a while!" }, { status: 429 });
}
} else {
return NextResponse.json({ error: "Too many requests, Please try after a while!" }, { status: 429 });
}
return res;
}
export const config = {