chore: temporarily increase insight rate limit to 10/h for testing

This commit is contained in:
Marc-André Bombeck committed 2026-04-06 13:23:52 +02:00
1 parent 3bb3837938
commit c730845775
1 file changed
+1 -1
+1 -1
View File
@@ -14,7 +14,7 @@ export const POST = apiHandler(async (request: NextRequest) => {
const { user } = await requireAuth();
const userId = user.id;
const rl = await checkRateLimit(`insights:${userId}`, 2, 60 * 60 * 1000);
const rl = await checkRateLimit(`insights:${userId}`, 10, 60 * 60 * 1000);
if (!rl.allowed) {
return apiError("Maximum 2 insight generations per hour.", 429);
}