Skip to content
Development
Skill

/infra-platform-vercel

Vercel deployment platform — project configuration, serverless/edge functions, Routing Middleware, cron jobs, environment variables, monorepo setup

From plugin
skills
26200 skills

Claude Code

$ npx -y skills add agents-inc/skills --skill infra-platform-vercel --agent claude-code

SKILL.md

infra-platform-vercel.SKILL.md
name: infra-platform-vercel
description: Vercel deployment platform — project configuration, serverless/edge functions, Routing Middleware, cron jobs, environment variables, monorepo setup

Vercel Platform Patterns

> **Quick Guide:** Configure deployments with `vercel.json` (static) or `vercel.ts` (programmatic, build-time). Functions default to Node.js runtime in `iad1` region. Use `export const runtime = 'edge'` for edge functions (V8 isolates, global deployment). Routing Middleware runs before the cache globally. Secure cron jobs with `CRON_SECRET`. Enable Fluid compute for better concurrency and cost. Always place functions near your data source.

---

<critical_requirements>

CRITICAL: Before Using This Skill

**(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)**

**(You MUST NOT store secrets in vercel.json or source code -- use Environment Variables in the Vercel dashboard)**

</critical_requirements>

---

Examples

  • [Core Configuration & Functions](examples/core.md) -- vercel.json schema, functions config, runtime selection, regions, environment variables, Fluid compute
  • [Routing & Middleware](examples/routing.md) -- Routing Middleware, headers, redirects, rewrites, conditional routing, geo-routing
  • [Cron Jobs & Scheduling](examples/cron-jobs.md) -- cron configuration, CRON_SECRET verification, idempotent handlers
  • [Monorepo & Advanced](examples/monorepo.md) -- monorepo setup, vercel.ts programmatic config, ignoreCommand, image optimization
  • [Quick Reference](reference.md) -- vercel.json property reference, plan limits, region IDs, CLI commands

---

**Auto-detection:** Vercel, vercel.json, vercel.ts, @vercel/config, Vercel Functions, Vercel deploy, VERCEL_URL, VERCEL_ENV, VERCEL_REGION, Routing Middleware, middleware.ts, Edge Runtime, export const runtime, Fluid compute, vercel cron, cron jobs vercel, vercel.json crons, vercel dev, vercel build, vercel deploy, vercel env, vercel link, vercel pull, .vercelignore, vercel monorepo, vercel regions, vercel headers, vercel redirects, vercel rewrites

**When to use:**

  • Configuring Vercel project settings via `vercel.json` or `vercel.ts`
  • Deploying serverless functions (Node.js or Edge runtime)
  • Setting up Routing Middleware for auth, geo-routing, or A/B testing
  • Configuring cron jobs for scheduled tasks
  • Managing environment variables across preview/production
  • Setting up monorepo deployments with per-app configuration
  • Configuring headers, redirects, rewrites, and URL routing
  • Choosing function regions and memory/duration limits

**When NOT to use:**

  • Long-running background jobs exceeding plan limits (use a dedicated job runner)
  • Workloads requiring persistent WebSocket connections (Vercel functions are request/response)
  • Applications needing custom server runtimes beyond Node.js/Edge/Bun/Python/Go/Ruby

**Key patterns covered:**

  • `vercel.json` / `vercel.ts` project configuration with IDE schema validation
  • Serverless function configuration (runtime, memory, maxDuration, regions)
  • Edge Runtime vs Node.js runtime tradeoffs
  • Routing Middleware (runs before cache, global edge execution)
  • Cron jobs with `CRON_SECRET` authentication
  • Headers, redirects, rewrites with conditional matching (`has`/`missing`)
  • Monorepo setup with root directory and ignored build steps
  • Fluid compute for improved concurrency and cost efficiency
  • Environment variables (`VERCEL_ENV`, `VERCEL_URL`, `VERCEL_REGION`)

---

<philosophy>

Philosophy

Vercel is a deployment platform that auto-detects your framework and optimizes builds, routing, and function deployment. The key architectural principle: **configure only what you need to override**. Vercel's defaults are sensible for most projects -- `vercel.json` exists for when those defaults don't fit.

1. **Convention over configuration** -- Vercel auto-detects frameworks, build commands, and output directories. Only override when the defaults don't work. 2. **Functions near data** -- Serverless functions default to `iad1` (Washington, D.C.). If your database is in Europe, set `regions` to a European region. 3. **Edge for global, Node.js for power** -- Edge runtime runs globally with low latency but has limited APIs. Node.js runtime has full API access but runs in a single region by default. 4. **Routing Middleware runs before cache** -- Use it for personalization, auth, geo-routing. Keep it fast (50ms CPU average on Edge). 5. **Fluid compute** -- Enabled by default for new projects (since April 2025). Reuses function instances for concurrent requests, reducing cold starts and cost.

**When to use Vercel:**

  • Deploying web applications with automatic framework detection
  • Serverless API endpoints that scale to zero
  • Edge-first applications needing global low-latency
  • Projects needing preview deployments per PR

**When NOT to use Vercel:**

  • Long-running compute exceeding plan maxDuration limits
  • Applications requiring persistent connections (WebSockets beyond Vercel's support)
  • Workloads with heavy sustained compute (cost-prohibitive at scale)

</philosophy>

---

<patterns>

Core Patterns

Pattern 1: vercel.json Configuration

Every Vercel project can have a `vercel.json` at the root for static configuration, or `vercel.ts` for programmatic build-time configuration. Always include the `$schema` for IDE autocompletion.

{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "regions": ["iad1"],
  "functions": {
    "api/**/*.ts": {
      "maxDuration": 30
    }
  },
  "crons": [
    {
      "path": "/api/daily-cleanup",
      "sched
Read more
@agents-inc
Ships withskills

The official skills marketplace for Agents Inc. 230+ skills covering everything from React and Prisma to Redis, ElevenLabs, and infrastructure tooling. Pick the skills that match your stack and install them via Claude Code. Need more control?

Stars on GitHub

Momentum

stars in total
26
Star history of agents-inc/skills on GitHub, a chart by star-history.com

Other skills on skills.

ai-infrastructure-litellm

ai-infrastructure-lite…

LiteLLM proxy server setup, TypeScript client patterns via OpenAI SDK, model routing, fallbacks, load balancing, spend tracking,…

@agents-inc@agents-incInstall Skill
ai-infrastructure-modal

ai-infrastructure-moda…

Serverless GPU compute platform for AI model deployment — web endpoints, GPU functions, model serving, and TypeScript client…

@agents-inc@agents-incInstall Skill
ai-infrastructure-ollama

ai-infrastructure-olla…

Local LLM inference with the Ollama JavaScript client -- chat, streaming, tool calling, vision, embeddings, structured output,…

@agents-inc@agents-incInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about infra-platform-vercel.

Which coding agents can use infra-platform-vercel?
infra-platform-vercel installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.