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
{
"$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
Download from the command line
curl -L -o vercel.json https://files.samplefiles.com/config/vercel-json/vercel.jsonwget https://files.samplefiles.com/config/vercel-json/vercel.jsonhttps://files.samplefiles.com/config/vercel-json/vercel.jsonprintf '%s %s\n' d1d714f654ae32beb74b2cbb5b5fc6e7eec96bcb5dabb7677b0650cd74f15941 vercel.json | shasum -a 256 -cOr check the download in your browser with the checksum calculator.