refactor(api): add redis-backed rate limiting fallback
This commit is contained in:
@@ -131,7 +131,8 @@ Configured in `next.config.ts`:
|
||||
|
||||
- **Per-IP rate limiting**: via middleware on all API routes
|
||||
- **Per-user rate limiting**: configurable per-procedure
|
||||
- **Auth-specific rate limiting**: 5 attempts / 15 min per email (in-memory sliding window)
|
||||
- **Shared rate-limit backend**: Redis-backed counters when `REDIS_URL` is configured; in-memory fallback remains available for local development and degraded operation
|
||||
- **Auth-specific rate limiting**: 5 attempts / 15 min per email
|
||||
- **AI API call rate limits**: upstream provider limits surfaced as user-friendly errors
|
||||
|
||||
## 9. Error Handling
|
||||
|
||||
Reference in New Issue
Block a user