fix: rate limiter was blocking all /api/cats reads after 10 requests

uploadLimiter now only applies to POST /api/cats (uploads), not GET
reads — previously users were getting 429 after ~10 page navigations.
Also remove duplicate file input in ProfilePage and cancel stale rAF
on route transition cleanup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-26 09:45:35 +03:00
parent 122d9e831f
commit 852e0f5f5b
3 changed files with 7 additions and 3 deletions

View File

@@ -268,7 +268,6 @@ export default function ProfilePage() {
<div className="divider mb-4" />
<div>
<input type="file" ref={fileInputRef} onChange={onFileChange} accept="image/*" className="hidden" />
<Button
variant="outline"
onClick={() => fileInputRef.current?.click()}