BuildWithMatija
Build with Matija logo

Build with Matija

Senior-led B2B websites, applications, content systems, and digital infrastructure. Business-first, full-stack, AI-assisted, no handoffs.

Services

  • B2B Website Development
  • CMS Architecture Review & Platform Blueprint
  • Next.js + Payload Advisory
  • AI Integration & Implementation

Resources

  • CMS Hub
  • B2B Website Strategy
  • E-commerce Hub
  • Blog
  • Case Studies
  • About Matija

Payload CMS

  • Payload CMS Developer
  • Payload CMS Migration
  • Payload CMS Demos
  • All Payload CMS Resources

Discuss your project

Planning a rebuild, migration, application, workflow change, or platform decision? Start with the business problem and the system behind it.

Book a discovery callContact me →
© 2026Build with Matija•All rights reserved•Privacy Policy•Terms of Service
BuildWithMatija
Get In Touch

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.

Browse by area

Open hub
Open hub
Open hub
Audience
More
Sort
Type
RSS Feed

All Articles (139 articles)

  • Previous
  • 1
  • 2
  • More pages
  • 12
  • Next
Page 1 of 12

Browse

Topics

PayloadPayload
142
Next.jsNext.js
139
ReactReact
20
DockerDocker
23
AI
34
CloudflareCloudflare
9

Newsletter

Stay Updated

Get practical notes and implementation updates without the noise.

Why wrapping already-prebuilt blocks in Suspense still caused 0.999 CLS on Next.js 16, and the shell-level regression…
Next.js·Featured

Suspense Around Static Content Still Shifts the Layout: Fixing CLS on a Prebuilt Next.js 16 Site

Even on a fully prebuilt Next.js 16 site, Suspense boundaries around large static sections can still outline content and cause severe CLS. Here is how to…

Matija Žiberna
Matija Žiberna
about 1 month ago13 min
Read article→
Putting one OpenID Connect issuer on Hono + Better Auth in front of multiple products, with local sessions and the…

Next.js

One Login for Every Product: Building a Central Identity Provider on Better Auth

How I built a central OAuth 2.1 / OIDC identity provider on Better Auth and Hono for multiple products, plus the three production audit gaps that tests missed.

about 1 month ago16 min
How a React hydration timing bug caused GA4 to drop 100% of consenting user data with npa=1 and gcs=G100 — and the…

Next.js

Postmortem: Google Analytics Consent Race Condition in Next.js

A race condition between React consent hydration and GA4 initialization caused Google Analytics to discard all traffic. Here is the timeline, root cause, and…

about 1 month ago9 min
Add a zero-database, markdown-ready comment system to your Next.js blog using Giscus and GitHub Discussions, with…

Next.js

Setting Up Giscus Comments in Next.js (GitHub Discussions)

Step-by-step guide to adding Giscus comments to Next.js: enabling GitHub Discussions, configuring the app, building the React component, and syncing themes.

about 1 month ago6 min
Combine code-inspector-plugin stamps with a TypeScript compiler string index to trace rendered copy back to its exact…

Next.js

Map Rendered Text to File, Line and Column in a Next.js 16 App

Trace any rendered string in a Next.js 16 App Router page back to its exact file, line, and column using code-inspector-plugin and a TypeScript AST index.

about 1 month ago17 min
What partialPrefetching: true vs false actually changes in Next.js 16.4+, when shared shells help, and when to leave…

Next.js

Next.js Partial Prefetching Explained: Should You Enable It?

Next.js 16.4 warns when cacheComponents is enabled without partialPrefetching. Here is what true vs false changes for prefetch requests, shells, and navigation.

about 1 month ago10 min
A production guide to user impersonation with Neon Auth (Better Auth) and Next.js, including the __Secure- cookie…

Next.js

How to Add "Log In As User" Impersonation with Neon Auth in Next.js

Learn how to implement superadmin "log in as user" impersonation using Neon Auth, service accounts, and Next.js server actions while avoiding cookie bugs.

about 2 months ago14 min
Practical breakdown of Next.js 16.4 canary: Partial Prefetching with unstable_ensureStatic, next analyze, stricter…

Next.js

Next.js 16.4 Is Out: Cache Components, React 19.3, and Upgrade Guide

Next.js 16.4 is official. Learn what changed since canary, how ensureStatic and navigation work, and what to test before upgrading an existing app.

about 2 months ago8 min
Production-ready Neon Managed Better Auth on Vercel with Next.js: proxy /api/auth, service-account admin, six-digit…

Next.js

Neon Managed Better Auth in Next.js on Vercel: A Production Setup Guide

Set up Neon Managed Better Auth in Next.js on Vercel for production: secure proxying, service-account admin flows, six-digit OTP resets, and signed webhook…

about 2 months ago19 min
Step-by-step Next.js migration from Stack Auth to Neon Managed Better Auth with backup, admin, and user-relink…

Next.js

How to Migrate from Stack Auth to Neon Managed Better Auth in Next.js

A production-tested guide to migrate to Neon Managed Better Auth in Next.js—backup, rehearse on a spike branch, create a service account, re-create users, and…

about 2 months ago19 min
Step-by-step guide to building a zero-dependency, voice-ready editorial annotation popover with native browser…

Next.js

How to Build an In-Article Editorial Annotation Layer in Next.js with Vanilla JavaScript and CSS

about 2 months ago13 min
Declare AI content preferences with Next.js 16.3 and the new other directive map in app/robots.ts.

Next.js

How to Implement Content Signals in Next.js 16 (robots.ts)

Learn how to implement Content Signals in Next.js 16 using the official other field in app/robots.ts to declare granular AI training, search, and input…

2 months ago6 min