Skip to content

3 notes

Notes on Sanity

  1. Publish in Sanity, rebuild on Vercel

    A filtered Sanity webhook calling a Vercel deploy hook, so publishing content rebuilds the static site, and drafts and unused types don't.

    2 min read

  2. Generated share images, no uploads

    Replace hand-made Open Graph images with ones generated from each page's title: free, open source, on brand, and painless across many locales.

    10 min read

  3. Build pages in Sanity, not in code

    A typed page builder with Sanity and Astro: every page is a document made of designed blocks, one route renders them all, and TypeScript guards the seams.

    4 min read

Pages