← ClaudeAtlas

vercel-static-configlisted

Writes and checks vercel.json for static and mostly static sites. Covers one URL per page (trailingSlash, cleanUrls, redirects for /index.html, the apex domain and the project's own vercel.app domain), cache headers per file type, noindex on preview hosts, basic security headers and the 404 page, in the modern format or the legacy routes format, and keeping a generated config generated; scripts/check-headers.mjs checks a live deployment's caching, compression, duplicate URLs and preview noindex. Use it when creating or editing vercel.json, choosing cache headers, fixing duplicate URLs or slow repeat visits, keeping *.vercel.app out of search, or when a deployment fails on a route pattern.
sharabarinillia/SEO-GEO-Vercel-Playbook-Skill · ★ 1 · AI & Automation · score 78
Install: claude install-skill sharabarinillia/SEO-GEO-Vercel-Playbook-Skill
# vercel.json for static sites Three jobs: **one URL per page**, **the right cache lifetime per file type**, and **only the real domain in search**. Everything else is optional. ## Steps 1. **Pick the format** (details: [references/config-formats.md](references/config-formats.md)): - **Modern** (`trailingSlash`, `cleanUrls`, `redirects`, `headers`): the default for new projects. Template: [assets/vercel.static.json](assets/vercel.static.json). - **Legacy `routes`**: when you need route-level features such as host-conditioned headers with `continue`, or firewall `mitigate` rules in the file. It can't be mixed with the modern keys. Template: [assets/vercel.routes.json](assets/vercel.routes.json). 2. **One URL per page.** Choose trailing slash or not, and make the other form redirect with 308 (`trailingSlash: true` does it; paths with a file extension are left alone). Redirect `/index.html` URLs. Redirect the apex domain to `www` (or the reverse) in Project → Settings → Domains. Link internally only to the canonical form. 3. **Keep the `*.vercel.app` hosts out of search.** Redirect the project's own production `my-project.vercel.app` domain to the real domain (a host-scoped redirect naming that exact host), and send `X-Robots-Tag: noindex` on every `*.vercel.app` host, or keep previews behind Deployment Protection. 4. **Cache by file type** ([references/caching.md](references/caching.md)): | Files | Cache-Control | |---|---| |