Config Files · 1 file

Sample vercel.json File

vercel.json configures Vercel routing, headers and crons. Our sample is realistic and valid for its tool, with fake hosts and secrets.

vercel.json · 499 B

vercel.json

A Vercel project config with clean URLs, redirects, rewrites, headers and a cron job. All hosts, keys and secrets are fake.

CC0 · free for any use · Verified by an independent tool · Report a problem

vercel.json — first linesJSON
{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "cleanUrls": true,
  "trailingSlash": false,
  "redirects": [{ "source": "/docs/:path*", "destination": "/guides/:path*", "permanent": true }],
  "rewrites": [{ "source": "/api/(.*)", "destination": "/api/index" }],
  "headers": [
    {
      "source": "/assets/(.*)",
      "headers": [{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }]
    }
  ],
  "crons": [{ "path": "/api/cleanup", "schedule": "0 3 * * *" }]
}

File details

Size
499 B (499 bytes)
MIME type
application/json
SHA-256
d1d714f654ae32beb74b2cbb5b5fc6e7eec96bcb5dabb7677b0650cd74f15941
MD5
7bf380c97fb5cb601a1a440d22e06e9c

Download from the command line

curl -L -o vercel.json https://files.samplefiles.com/config/vercel-json/vercel.json

Or check the download in your browser with the checksum calculator.