From c73084577561da1df362324895cc99986f7a0f0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Mon, 6 Apr 2026 13:23:52 +0200 Subject: [PATCH] chore: temporarily increase insight rate limit to 10/h for testing --- src/app/api/insights/generate/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/insights/generate/route.ts b/src/app/api/insights/generate/route.ts index 5333f685b..d9f4f1ff8 100644 --- a/src/app/api/insights/generate/route.ts +++ b/src/app/api/insights/generate/route.ts @@ -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); }