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
    • CMS Hub
    • E-commerce Hub
    • Dashboard

    Headless CMS

    • Payload CMS Developer
    • CMS Migration
    • 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 →
    © 2026BuildWithMatija•All rights reserved
    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

    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
    Read more

    Series in this Category

    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
    3 months ago

    All Articles in this Category

    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.

    Matija Žiberna
    Matija Žiberna
    • Previous
    • 1
    • 2
    • Next
    Page 1 of 2

    Related Categories

    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.

    Newsletter

    Stay Updated

    Get practical notes and implementation updates without the noise.

    about 2 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.

    Matija Žiberna
    Matija Žiberna
    2 months ago
    Minimalistic website window icon with a single speech bubble and a checkmark on a solid color background, representing an initial sales conversation.
    Sanity
    Outdated Website Content: Why Sales Teams Lose Deals

    Outdated website content weakens sales credibility and wastes reps' time. Learn the structural causes, why CRM can't fix it, and next steps to regain trust.

    Matija Žiberna
    Matija Žiberna
    3 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…

    Matija Žiberna
    Matija Žiberna
    5 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.

    Matija Žiberna
    Matija Žiberna
    7 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.

    Matija Žiberna
    Matija Žiberna
    7 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.

    Matija Žiberna
    Matija Žiberna
    7 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…

    Matija Žiberna
    Matija Žiberna
    7 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…

    Matija Žiberna
    Matija Žiberna
    7 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.

    Matija Žiberna
    Matija Žiberna
    7 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.

    Matija Žiberna
    Matija Žiberna
    7 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.

    Matija Žiberna
    Matija Žiberna
    7 months ago