Blog

Understanding Sanity Datasets and Environments
A Sanity dataset is a self-contained collection of JSON documents inside a project, and an environment is a dataset plus the Studio and appli
Dive Deeper
Using defineType and defineField in Sanity
defineType and defineField are helper functions exported from the sanity package that wrap your schema definitions and give you TypeScript
Dive Deeper
Adding Custom Document Actions in Sanity
Document actions in Sanity are the buttons in the document editor's footer, such as Publish, Unpublish, Duplicate and Delete. You
Dive Deeper
Using Document Badges and Previews in Sanity
Document badges in Sanity are small coloured labels shown in the document editor next to the action buttons, such as the default Draft and **
Dive Deeper
Sanity Document History and Revisions Explained
Sanity document history is the record of every transaction that changed a document, kept automatically by the Content Lake. In the Studio you ope
Dive Deeper
Generating Dynamic Sitemaps With Sanity
To generate a dynamic sitemap with Sanity, query every routable published document with GROQ, map each one to its URL with select(), use `_upda
Dive Deeper