← All code files

vercel.json

Vercel config: SPA rewrites and a security header.

{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }],
  "headers": [
    {
      "source": "/(.*)",
      "headers": [{ "key": "X-Content-Type-Options", "value": "nosniff" }]
    }
  ]
}

About this tool

Vercel config: SPA rewrites and a security header.

Ready-to-use vercel.json — view the content, copy it, or download it with the correct filename. Free and 100% in your browser.