BuildWithMatija

Technical Blog

Long-form technical guides for developers and evaluators.

How-to guides, tutorials, comparisons, and troubleshooting posts covering Payload CMS, Next.js, Docker, and related systems.

RSS Feed

Browse by area

Open hub
Open hub
Open hub
Audience
More
Sort
Type
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
BuildWithMatija
Get In Touch

All Articles (48 of 48 articles)

Compare Astro and Next.js for React developers: static-first architecture, islands hydration, SSR trade-offs, and a…
Next.js·Featured

Astro vs Next.js: When React Developers Should Use Astro

Astro vs Next.js: A practical comparison for React developers — learn when Astro's static-first islands model outperforms Next.js' app-oriented SSR and follow…

Matija Žiberna
Matija Žiberna
about 2 months ago13 min
Read article→
A security-first, production-ready walkthrough for Payload CMS MCP plugin covering API keys, scoped access, and…

Payload

Security-First Payload CMS MCP Integration: Production Guide

Implement secure, auditable Payload CMS MCP access in production: learn MCP API key scoping, key rotation, slug fixes, curl tests, and audit-friendly…

about 2 months ago4 min
Deep dive into payload.db.drizzle, schema hooks, migrations, read replicas, and practical Payload CMS Postgres best…

Payload

Payload Postgres Adapter Guide: Drizzle Config & Migrations

Master the Payload Postgres adapter: access payload.db.drizzle, run safe migrations, add schema hooks, avoid stale replica reads, and extend your DB safely.

2 months ago21 min
How Payload CMS works with Next.js 16 cache components, 'use cache'/'use cache: remote' patterns, admin caveats, and…

Next.js

Next.js Cache Components: Payload CMS Support Explained

Learn whether Next.js Cache Components work with Payload CMS, what changed in PR #16020, the real admin limitations, and safe frontend caching patterns to…

2 months ago6 min
Connect Next.js Draft Mode, Payload versions, and a postMessage bridge to build reliable, real-time live preview with…

Payload

Complete Guide to Payload CMS Live Preview with Next.js

Learn to implement Payload CMS live preview with Next.js Draft Mode, Payload versions, and a postMessage bridge — step-by-step, with troubleshooting and checks.

2 months ago23 min
Fix redirect loops and secure cookie auth by passing real request headers to payload.auth(); handle CSRF and protect…

Payload

Payload CMS Authentication: Secure Next.js Pages — Proven

Learn Payload CMS authentication for Next.js: pass real incoming headers to payload.auth() to avoid CSRF failures, prevent redirect loops, and secure custom…

2 months ago10 min
Make identity global in multi-tenant Payload CMS: use tenant membership arrays to prevent createdBy validation errors…

Payload

Why Payload CMS Users Should Never Be Tenant-Scoped

Avoid cross-tenant validation errors by keeping the users collection global in Payload CMS. Use a tenants membership array to enforce access and fix createdBy…

3 months ago7 min
How to enable concurrency control, use exclusive vs. supersedes modes, and scope keys for multi-tenant Payload jobs.

Payload

Payload CMS Concurrency Keys: Prevent Race Conditions

Learn how Payload CMS concurrency keys serialize jobs to prevent duplicate writes and race conditions across workers—practical steps for multi-tenant setups.

3 months ago10 min
Why active tenant scoping matters: prevent wrong-tenant reads, enforce tenant filters, and secure multi-tenant…

Payload

Active Tenant Scoping vs Access Control: A Practical Guide

Understand active tenant scoping versus access control. Learn concrete query patterns, route guards, and job fixes to stop wrong-tenant reads.

3 months ago5 min
Why passing req in Payload CMS hooks can break transactions - learn 2 safe patterns to prevent silent rollbacks

Payload

Payload Async Hooks: Avoid the Transaction Trap - 3 Fixes

Discover how Payload async hooks can tie background tasks to a request transaction and cause silent rollbacks. Learn two safe patterns to prevent this today.

3 months ago7 min
How to run Payload's web and worker runtimes separately, use concurrency keys, and scale background jobs without…

Payload

Payload CMS Jobs: Separate Web & Worker Roles for Safe Scale

Learn how Payload CMS jobs can run safely at scale by separating web and worker runtimes, using concurrency keys, and preventing database contention.

3 months ago8 min
Why prodMigrations fails at scale and how to run Payload CMS schema migrations once per deployment on Kubernetes or ECS

Payload

Stop Runtime Payload Migrations in Distributed Systems

Prevent startup race conditions: learn why Payload migrations shouldn't run at runtime in Kubernetes or ECS and how to implement a one-runner 'payload…

3 months ago7 min
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next
Page 1 of 4

Browse

Topics

PayloadPayload
103
Next.jsNext.js
112
ReactReact
14
DockerDocker
21
AI
20
CloudflareCloudflare
7

Newsletter

Stay Updated

Get practical notes and implementation updates without the noise.