BuildWithMatija
Get In Touch
Build with Matija logo

Build with Matija

Modern websites, content systems, and AI workflows built for long-term growth.

Services

  • Headless CMS Websites
  • Next.js & Headless CMS Advisory
  • AI Systems & Automation
  • Website & Content Audit

Resources

  • Case Studies
  • How I Work
  • Blog
  • Topics
  • CMS Hub
  • E-commerce Hub
  • B2B Website Strategy
  • Dashboard

Headless CMS

  • Payload CMS Developer
  • CMS Migration
  • Multi-Tenant CMS
  • Payload vs Sanity
  • Payload vs WordPress
  • Payload vs Contentful

Get in Touch

Ready to modernize your stack? Let's talk about what you're building.

Book a discovery callContact me →
© 2026Build with Matija•All rights reserved•Privacy Policy•Terms of Service
  1. Home
  2. Blog
  3. Sanity
Sanity

Sanity

Exploring the power and quirks of Sanity — a flexible, real-time headless CMS. From setting up schemas to integrating with frontends like Next.js, this category covers practical guides, best practices, and lessons learned from using Sanity in real-world projects.

Featured Articles

How To Add Markdown Support to Sanity Studio

Adding Markdown Support to Sanity Studio: Want a Better Content Editing Experience? This guide shows you how to add…

Matija Žiberna
Matija Žiberna
•7th March 2025

Series in this Category

All Articles in this Category

  • Previous
  • 1
  • 2
  • Next
Page 1 of 2

Related Categories

Newsletter

Stay Updated

Get practical notes and implementation updates without the noise.

How To Add Markdown Support to Sanity Studio
Read more
Sanity CMS with Next.js: Production Guide

Master Sanity CMS with Next.js: schema setup, TypeGen, GROQ queries, webhooks, markdown editing, document previews, and production workflows.

0 Articles
7 months ago
Minimal dark-themed horizontal illustration showing Contentful, Sanity, Payload, and WordPress logos bound by chains and padlocks, symbolizing CMS vendor lock-in, with a broken chain between Sanity and Payload on a solid dark background.

Sanity

CMS Vendor Lock-In Explained: Sanity vs Payload 2026

Understand CMS vendor lock-in and which risks matter: data, query (GROQ), pricing, schema, and integrations. Get clear migration cost estimates and guidance.

5 months ago
Checklist of real-world performance, pricing, migration, and security regrets in Sanity and Payload projects

Sanity

Sanity vs Payload: 6 Costly Regrets Teams Always Face

Discover six common regrets teams face after choosing Sanity vs Payload - performance, pricing, migration, security - a checklist to avoid costly mistakes.

5 months ago

Sanity

Fix NEXT_PUBLIC_SANITY_DATASET Error in Sanity CLI

Fix the 'Missing environment variable: NEXT_PUBLIC_SANITY_DATASET' error by loading dotenv in sanity.cli.ts and adding env.ts fallbacks so npx sanity dev runs…

8 months ago
sanity document preview customisation

Sanity

How to Customize Document Previews in Sanity CMS Studio

Learn to tailor Sanity Studio document previews with select and prepare: display publication dates, statuses, reference fields, media fallbacks, and computed summaries.

10 months ago
Sanity custom admin view

Sanity

How to Add Custom Sorting Options to Sanity CMS Document Lists

Learn to add custom sorting options to Sanity Studio document lists using the structure tool, including default sort, multi-field ordering, and domain-specific sorts.

10 months ago
Rest to SDK

Sanity

How to Build a Professional TypeScript SDK for Any REST API

Create a production-ready TypeScript SDK: clean architecture, strict typing, robust error handling, packaging, and a smooth developer experience for any REST API.

10 months ago
Sanity Newsletter pop-up in nextjs

Sanity

How to Build Category-Aware Popups in Next.js Using Sanity CMS

Increase conversions by showing targeted newsletter popups based on a post's category. Learn how to detect categories from Sanity, map them to tailored…

10 months ago
Sanity BREVO sync

Sanity

How to Sync Your Sanity CMS Newsletter with Brevo Email Marketing

Integrate Brevo with your Sanity CMS newsletter: add the official SDK, create a service module, and sync subscribers reliably after Sanity creation with…

10 months ago
Sanity Typegen

Sanity

Sanity TypeGen: Optimal Project Structure and Production Workflow (2025 Update)

Complete guide to implementing Sanity TypeGen at scale: project structure, query organization, type generation workflow, and production deployment strategies for large applications.

10 months ago
Grapql vs GROQ

Sanity

GROQ vs GraphQL: Complete Guide to Choosing the Right Query Language (2025)

Comprehensive comparison of GROQ and GraphQL: understand when to choose each query language for content-driven applications vs. complex multi-source APIs.

10 months ago
Sanity CMS webhook protection

Sanity

How to Create Secure Sanity CMS Webhooks with Next.js App Router

Secure your Sanity webhook endpoint in Next.js App Router with signature verification, raw body parsing, GROQ filters, and safe cache revalidation.

10 months ago
Remix dynamic route matching

Sanity

How to Fix Remix Dynamic Route Precedence: The Underscore Solution

Struggling with Remix dynamic routes not matching correctly? Learn how to fix route precedence conflicts using underscore notation for pathless layout routes.

10 months ago
Next.js

Next.js

Learn everything about Next.js, the leading React framework for building production-ready web apps.

Payload

Payload

Deep dives, tutorials, and thoughts on using Payload CMS — a powerful headless CMS for developers who love control and flexibility. Here I share tips, code snippets, and real-world experiences from my projects, whether I’m building custom APIs, structuring collections, or deploying Payload in production.