Skip to content

ericrisco/rsc-harness / skills/vercel

vercel

Verified

Use when operating an already-chosen Vercel project from the CLI or its config file — preview versus production deploys, debugging builds, pushing and pulling env vars across environments, custom domains, function runtime, duration and regions, crons, rewrites and headers, and deployment protection. NOT host choice, Docker or CI (that is `deployment`), NOT Next.js app code or next.config (that is `nextjs`), NOT DNS records or registrar transfers (that is `domains-dns`).

FileKindSize
SKILL.mdskill md13.7 KB
evals/README.mdmarkdown1.6 KB
evals/cases.yamlconfig3.5 KB
references/cli-cookbook.mdmarkdown4.0 KB
references/vercel-json.mdmarkdown4.5 KB
scripts/verify.shexecutablescript6.2 KB

references/vercel-json.md

View on GitHub
# `vercel.json` — full key catalog

Static config for a Vercel project. Add `"$schema": "https://openapi.vercel.sh/vercel.json"` for
editor autocomplete and validation. `vercel.ts` supports the **same** properties but runs at build
time, so it can compute config from env vars or API calls.

## Top-level keys (current)

| Key | Type | Notes |
| --- | --- | --- |
| `$schema` | string | Set to `https://openapi.vercel.sh/vercel.json` for validation |
| `buildCommand` | string | Overrides the framework build command |
| `bunVersion` | string | Pin the Bun version used for builds |
| `cleanUrls` | boolean | Drop `.html`/`.htm` extensions from paths |
| `crons` | array | Scheduled invocations — **production only** (see below) |
| `devCommand` | string | Command for `vercel dev` |
| `fluid` | boolean | Fluid compute toggle (on by default for new projects since 2025-04-23) |
| `framework` | string | Framework preset (e.g. `nextjs`); `null` for no preset |
| `functions` | object | Per-path function config (see below) — cannot combine with legacy `builds` |
| `headers` | array | Response headers by path |
| `ignoreCommand` | string | Run before build; **exit 0 = skip/cancel the build** |
| `images` | object | Image Optimization config |
| `installCommand` | string | Overrides dependency install |
| `outputDirectory` | string | Build output dir |
| `public` | boolean | Expose source/logs publicly |
| `redirects` | array | URL redirects (status changes the visible URL) |
| `bulkRedirectsPath` | string | Path to a large redirects file |
| `regions` | array | Default deployment regions |
| `functionFailoverRegions` | array | Failover regions (Enterprise) |
| `rewrites` | array | URL rewrites (URL stays, content swaps) |
| `routes` | array | Low-level routing (prefer rewrites/redirects/headers) |
| `trailingSlash` | boolean | Force/forbid a trailing slash |

`functions` and the legacy `builds` are mutually exclusive — use `functions`.

## `functions` object

```json
{
  "functions": {
    "api/**/*.ts": {
      "runtime": "nodejs22.x",
      "maxDuration": 60,
      "regions": ["fra1", "iad1"],
      "includeFiles": "data/**",
      "excludeFiles": "tests/**",
      "supportsCancellation": true
    }
  }
}
```

| Key | Notes |
| --- | --- |
| `runtime` | Runtime identifier; default Node (Vercel Functions). Edge Functions are deprecated |
| `memory` | **Not under Fluid** — set default memory/CPU in the dashboard instead |
| `maxDuration` | Max wall-clock seconds per invocation; plan-bound (table below) |
| `supportsCancellation` | Node only |
| `includeFiles` / `excludeFiles` | Glob extra/omitted files in the function bundle |
| `regions` | Where the function runs |
| `functionFailoverRegions` | Enterprise failover |

### Per-plan duration & memory

| Plan | `maxDuration` default → ceiling | Default memory |
| --- | --- | --- |
| Hobby | 10s → 60s | 1024 MB |
| Pro | 15s → 300s | 1024 MB |
| Enterprise | 15s → 900s | 1024 MB |

Memory defaults to 1024 MB; under Fluid the default is a dashboard setting, not a `vercel.json` key.

## `crons`

```json
{ "crons": [{ "path": "/api/digest", "schedule": "0 * * * *" }] }
```

- Each entry needs a `path` (must start with `/`) and a `schedule` (cron expression).
- Crons run **only on the production deployment** — never on preview.

## `rewrites` / `redirects` / `headers`

```json
{
  "redirects": [{ "source": "/old", "destination": "/new", "permanent": true }],
  "rewrites": [{ "source": "/proxy/:path*", "destination": "https://api.example.com/:path*" }],
  "headers": [
    { "source": "/(.*)", "headers": [{ "key": "X-Frame-Options", "value": "DENY" }] }
  ]
}
```

- `redirects`: `permanent: true` → 308 (cacheable), `false` → 307. Changes the visible URL.
- `rewrites`: URL stays in the address bar; different content/origin is served. Use for proxying.
- `headers`: attach response headers per path.

## `vercel.ts` example

```ts
import type { VercelConfig } from "@vercel/config";

const config: VercelConfig = {
  functions: {
    "api/**/*.ts": {
      maxDuration: process.env.SLOW_API === "1" ? 60 : 15,
      regions: [process.env.PRIMARY_REGION ?? "fra1"],
    },
  },
  crons: [{ path: "/api/digest", schedule: "0 * * * *" }],
  cleanUrls: true,
};

export default config;
```

Use `vercel.ts` only when config must be *generated*; otherwise prefer the static `vercel.json`.

For the full region identifier list (`fra1`, `iad1`, `sfo1`, …) consult the Vercel regions doc — they
change over time and are not worth hard-coding here.
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall