Type something to search...

Blog

How to Migrate From WordPress to Sanity

How to Migrate From WordPress to Sanity

To migrate from WordPress to Sanity, audit what's in WordPress, model each post type, taxonomy and custom field as a Sanity schema, then write a

Dive Deeper
next-sanity: The Complete Guide

next-sanity: The Complete Guide

next-sanity is Sanity's official toolkit for Next.js. It bundles the Sanity client, GROQ helpers, a Portable Text renderer, live content fetching

Dive Deeper
Building a Blog With Next.js and Sanity

Building a Blog With Next.js and Sanity

To build a blog with Next.js and Sanity, model post, author and category document types in Sanity Studio, write GROQ queries for the post l

Dive Deeper
Optimizing Sanity Images for Performance

Optimizing Sanity Images for Performance

To optimise Sanity images for performance, never serve the original asset URL. Instead, request each image through Sanity's image pipeline with `

Dive Deeper
How to Add Inline Annotations and Links in Portable Text

How to Add Inline Annotations and Links in Portable Text

To add inline annotations and links in Portable Text, define them under marks.annotations on the block member of your Portable Text field. Ea

Dive Deeper
Adding Custom Blocks to Sanity Portable Text

Adding Custom Blocks to Sanity Portable Text

To add custom blocks to Sanity Portable Text, define an object type with the fields you need, such as a callout with tone and text, and add

Dive Deeper