infra-platform-vercel
Vercel Platform Patterns
Quick Guide: Configure deployments with
vercel.json(static) orvercel.ts(programmatic, build-time). Functions default to Node.js runtime iniad1region. Useexport const runtime = 'edge'for edge functions (V8 isolates, global deployment). Routing Middleware runs before the cache globally. Secure cron jobs withCRON_SECRET. Enable Fluid compute for better concurrency and cost. Always place functions near your data source.
<critical_requirements>
CRITICAL: Before Using This Skill
All code must follow project conventions in CLAUDE.md (kebab-case, named exports, import ordering,
import type, named constants)
(You MUST always include "$schema": "https://openapi.vercel.sh/vercel.json" in vercel.json for IDE validation)
(You MUST place functions in a region close to your data source -- the default iad1 may add latency if your database is elsewhere)
(You MUST verify CRON_SECRET in cron job handlers -- Vercel cron endpoints are publicly accessible URLs)
(You MUST design cron jobs to be idempotent -- Vercel may deliver the same cron event more than once)