@vercel[bot]2mo ago
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
|---|---|---|---|
| platform-frontend | Preview, Comment | Mar 23, 2026 3:08am |
Add comprehensive server-side rate limiting and usage restrictions for the playground feature to prevent abuse and excessive usage.
Changes:
PLAYGROUND_LIMITS constant consolidates all playground limits in one place for easy tuningcheckPlaygroundLimits() helper: Enforces both per-minute burst and daily cap in a single call, with tier-appropriate error messagescheckMessageLimit() helper: Validates session message count, returns a 400 with clear guidance to start a new sessionAll three playground API routes updated:
| Endpoint | Per-minute | Daily cap | Message limit |
|---|---|---|---|
/api/chat | 10/min | 200/day | 100/session |
/api/tool-router/chat | 10/min | 200/day | 100/session |
/api/chat/mcp-tools | 30/min | 500/day | N/A |
vitest run lib/__tests__/rate-limit.test.ts — 22 tests passed covering:
PLAYGROUND_LIMITS structure validationpnpm lint — 0 errors (328 pre-existing warnings)pnpm build — successfulThe latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
|---|---|---|---|
| platform-frontend | Preview, Comment | Mar 23, 2026 3:08am |