feat: raise submit rate limit to 2 per minute

This commit is contained in:
trafficlunar 2025-05-05 17:49:00 +01:00
parent 412b0e775b
commit ec1c19204d

View file

@ -36,7 +36,7 @@ export async function POST(request: NextRequest) {
const session = await auth(); const session = await auth();
if (!session) return NextResponse.json({ error: "Unauthorized" }, { status: 401 }); if (!session) return NextResponse.json({ error: "Unauthorized" }, { status: 401 });
const rateLimit = new RateLimit(request, 1); const rateLimit = new RateLimit(request, 2);
const check = await rateLimit.handle(); const check = await rateLimit.handle();
if (check) return check; if (check) return check;