vercel.json reference
forkrail reads the same vercel.json as Vercel. Here’s every key: what works, what’s ignored, and what stops a deploy so nothing behaves differently by surprise.
Config files
Any one of vercel.json, vercel.toml, vercel.ts, vercel.mts, vercel.js, vercel.mjs or vercel.cjs works; two in one project stops the deploy, as on Vercel. A vercel.ts runs with Node when the project is read, and its config export (or default export) is used.
import type { VercelConfig } from '@vercel/config/v1'export const config: VercelConfig = { cleanUrls: true, crons: [{ path: '/api/cron/sync', schedule: '0 5 * * *' }],}Supported keys
| Key | Notes | Docs |
|---|---|---|
buildCommand, installCommand, outputDirectory, framework | As on Vercel. | Deploy |
functions | memory, maxDuration, includeFiles, excludeFiles, architecture: "arm64", and a runtime naming the language’s own. | Function settings |
fluid | Concurrent compute on or off. | Concurrent compute |
crons, schedules | Up to 100 a project; schedules targets a path. | Cron jobs |
redirects, rewrites, headers, cleanUrls, trailingSlash, routes | Vercel’s patterns, order and limits. | Redirects and rewrites |
bulkRedirectsPath | CSV, JSON or JSONL, up to 1,000,000. | Bulk redirects |
images | Vercel’s shape. | Image Optimization |
proxy | Routing Middleware’s entry point and matcher. | Middleware |
git.deploymentEnabled, ignoreCommand | Which pushes deploy. | Deploy from GitHub |
github.autoJobCancelation | A newer push cancels older builds still running (default true). | Deploy from GitHub |
github.autoAlias | false: production branch pushes build production deployments without moving production. | Deployments |
Ignored keys
These are accepted and have no effect, with a warning where it matters: version, regions (use function regions), name, the other github keys, devCommand, and builds[].config.maxLambdaSize.
Refused keys
The deploy stops and names the key, rather than deploy something that behaves differently from Vercel:
buildswith more than one entry, or functions inapi/in more than one language.skipMiddlewareRequestBody,functionFailoverRegions,bunVersion, andpublic(which Vercel dropped too).schedulesthat target anything but apath.- In
routes:env(in a route or a transform),locale,middlewarePath, andhandle: rewriteorresource. - Function settings other than the ones listed above.
- Keys that don’t fit the project:
fluidon a static site,outputDirectoryon an API.