Search forkrail

Search documentation, comparisons, and CLI commands.

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.

vercel.ts
import type { VercelConfig } from '@vercel/config/v1'
export const config: VercelConfig = {
cleanUrls: true,
crons: [{ path: '/api/cron/sync', schedule: '0 5 * * *' }],
}

Supported keys

KeyNotesDocs
buildCommand, installCommand, outputDirectory, frameworkAs on Vercel.Deploy
functionsmemory, maxDuration, includeFiles, excludeFiles, architecture: "arm64", and a runtime naming the language’s own.Function settings
fluidConcurrent compute on or off.Concurrent compute
crons, schedulesUp to 100 a project; schedules targets a path.Cron jobs
redirects, rewrites, headers, cleanUrls, trailingSlash, routesVercel’s patterns, order and limits.Redirects and rewrites
bulkRedirectsPathCSV, JSON or JSONL, up to 1,000,000.Bulk redirects
imagesVercel’s shape.Image Optimization
proxyRouting Middleware’s entry point and matcher.Middleware
git.deploymentEnabled, ignoreCommandWhich pushes deploy.Deploy from GitHub
github.autoJobCancelationA newer push cancels older builds still running (default true).Deploy from GitHub
github.autoAliasfalse: 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:

  • builds with more than one entry, or functions in api/ in more than one language.
  • skipMiddlewareRequestBody, functionFailoverRegions, bunVersion, and public (which Vercel dropped too).
  • schedules that target anything but a path.
  • In routes: env (in a route or a transform), locale, middlewarePath, and handle: rewrite or resource.
  • Function settings other than the ones listed above.
  • Keys that don’t fit the project: fluid on a static site, outputDirectory on an API.
New to forkrail? Install it in your AWS account and deploy your first app in about 20 minutes.
Quickstart