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
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
  • 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 →
© 2026Build with Matija•All rights reserved•Privacy Policy•Terms of Service
BuildWithMatija
Get In Touch

All Articles (106 of 106 articles)

Automate adding data-gtm-id across a Next.js app using jscodeshift; handle asChild, export CSV for GA4 reporting
Developer toolsHow-To
data-gtm-id Codemod: 4-Command GTM Tracking Workflow

Automate stable click tracking with a data-gtm-id codemod: audit your Next.js UI, add attributes with jscodeshift, fix unknowns, and export CSV for GA4.

Matija Žiberna
Matija Žiberna
Implement field-level validation, server error hydration, typed Server Actions, and accessible shadcn/ui fields for…
Developer toolsHow-To
Next.js Forms: Ultimate TanStack + Zod Pattern (shadcn/ui)

Master Next.js forms with TanStack Form, Zod, and shadcn/ui for field-level validation, server-error hydration, and typed Server Actions. Follow this pattern.

Matija Žiberna
Matija Žiberna
Compare Astro and Next.js for React developers: static-first architecture, islands hydration, SSR trade-offs, and a…
Content Management SystemComparison
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
Step-by-step pattern using InferTypeOf and a shared-types package to export Medusa model types for a Next.js storefront
EcommerceHow-To
Ultimate Guide to Sharing Medusa Types in a Monorepo

Share Medusa types across a pnpm monorepo: use InferTypeOf to export stable model aliases from packages/shared-types so your Next.js storefront consumes safe…

Matija Žiberna
Matija Žiberna
How Payload CMS works with Next.js 16 cache components, 'use cache'/'use cache: remote' patterns, admin caveats, and…
Content Management SystemHow-To
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…

Matija Žiberna
Matija Žiberna
Step-by-step setup using @medusajs/js-sdk, Server Components and Payload CMS—configure env vars, region_id, image…
EcommerceHow-To
Complete Medusa + Next.js Integration Guide (Payload CMS)

Connect Medusa to your Next.js storefront with Payload CMS—install @medusajs/js-sdk, set NEXT_PUBLIC keys, pass region_id for accurate pricing, allow Medusa…

Matija Žiberna
Matija Žiberna
Portfolio, services pages, case study, contact flow, and CMS checklist to boost contractor inquiries.
Short ExplainerNext.js
Construction Company Website: 6 Essentials to Convert Leads

Six essentials every construction website needs to convert visitors into leads: filterable portfolio, focused services, quick contact flow, case study, and CMS.

Matija Žiberna
Matija Žiberna
Three-layer i18n architecture for Next.js App Router: routing, Payload CMS content, and hreflang with next-intl.
How-ToNext.js
Next.js Internationalization: Complete Architecture Guide

Understand Next.js internationalization architecture: a three-layer blueprint for App Router using next-intl and Payload CMS to fix routing, content, and…

Matija Žiberna
Matija Žiberna
How to separate transactional, notification, and marketing email flows in Next.js using React Email and the right…
How-ToNext.js
Next.js Email Architecture: Transactional & Newsletters

Practical Next.js Email Architecture to separate transactional, notification, and newsletter flows, improve deliverability, and choose the right provider today.

Matija Žiberna
Matija Žiberna
Senior developer guide comparing TanStack Start and Next.js 16 on routing, SSR, type safety, performance
ComparisonNext.js
TanStack Start vs Next.js 16: Ultimate Comparison 2026

Senior-level comparison of TanStack Start vs Next.js 16 — decide which framework is better for SSR, routing, type safety, performance, and production readiness.

Matija Žiberna
Matija Žiberna
A five-axis framework to pick the best headless CMS for Next.js—App Router, AI readiness, hosting model, and TCO.
Content Management SystemComparison
Best Headless CMS for Next.js in 2026: Decision Guide

Find the best headless CMS for Next.js using a five‑axis framework—ownership, editor UX, App Router, AI readiness, and upgrade stability. Save migration time.

Matija Žiberna
Matija Žiberna
Mid-market contractor guide: CMS choices, portfolio freshness, mobile performance, and SEO-focused sector pages.
Short ExplainerNext.js
Best Construction Company Websites 2026: What Works

Discover how a construction company website turns projects into leads: CMS setup, portfolio structure, mobile speed, sector pages, and visible contact paths.

Matija Žiberna
Matija Žiberna
  • Previous
  • 1
  • 2
  • More pages
  • 9
  • Next
Page 1 of 9

Explore Topics

Discover curated content across our most popular categories

Next.js

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

How to Update Sanity Schema in Nextjs 15

by Matija Žiberna

Integrating Sanity.io with Next.js 15: A Step-by-Step Guide

by Matija Žiberna

React

Articles and tutorials on building modern web interfaces using React — from components and hooks to performance optimization and architecture.

Newsletter

Stay Updated

Get practical notes and implementation updates without the noise.

React Hook Form Multi-Step Tutorial: Zustand + Zod + Shadcn

React Hook Form Multi-Step Tutorial: Zustand + Zod + Shadcn

by Matija Žiberna

The Invisible Form Bug: React 19 + React Hook Form's Hidden Compatibility Issue

The Invisible Form Bug: React 19 + React Hook Form's Hidden Compatibility Issue

by Matija Žiberna

View all React articles →
Docker
Docker

Everything you need to know about using Docker to build, ship, and run applications in isolated environments.

Docker Volume is in Use Error? 4 Proven Solutions

Docker Volume is in Use Error? 4 Proven Solutions

by Matija Žiberna

Fix Docker Permission Denied: Volumes, Bind Mounts & CI/CD

Fix Docker Permission Denied: Volumes, Bind Mounts & CI/CD

by Matija Žiberna

View all Docker articles →
Cloudflare
Cloudflare

Guides and insights on using Cloudflare for performance optimization, DNS management, security, and edge computing.

How To Programmatically Add DNS Records To Cloudflare In Node

How To Programmatically Add DNS Records To Cloudflare In Node

by Matija Žiberna

View all Cloudflare articles →
10 days ago
17 min read
11 days ago
11 min read
12 days ago
13 min read
20 days ago
10 min read
22 days ago
6 min read
26 days ago
9 min read
about 1 month ago
9 min read
about 1 month ago
11 min read
about 1 month ago
12 min read
about 2 months ago
13 min read
about 2 months ago
16 min read
about 2 months ago
14 min read
Next.js
How to Update Sanity Schema in Nextjs 15
Integrating Sanity.io with Next.js 15: A Step-by-Step Guide
View all Next.js articles →
React