Next.js build taking too long on a Sanity site: causes and the fix
Next.js build taking too long on your Sanity site? Learn why static builds crawl, what slow deploys cost your team, and the fix path in order.
Tag
41 posts
Next.js build taking too long on your Sanity site? Learn why static builds crawl, what slow deploys cost your team, and the fix path in order.
Next.js pages not indexed by Google on a Sanity site? Here are the real causes, what ignoring them costs, the fix order, and what to ask a developer.
Sanity preview not working in Presentation or draft mode? Work through CORS origins, secrets, the draftMode cookie, stega and caching causes.
How I build a multilingual website Sanity Next.js teams can maintain: document vs field-level i18n, routing, hreflang, sitemaps and editor workflow.
How to upgrade Next.js 15 to 16 on a Sanity-backed site: what changed, typical breakages, the cost of staying behind, and effort by codebase size.
A WordPress to Next.js migration SEO plan: permalink parity, Yoast metadata transfer, image URLs, edge redirects, and 8 weeks of Search Console tracking.
How to do a website redesign without losing SEO on Sanity + Next.js: URL inventory, 301 map, metadata parity, schema, sitemap and GSC monitoring.
How to migrate Next.js Pages Router to App Router route by route: when it's worth it, Sanity data fetching, SEO risks and effort ranges.
How to take over an existing Next.js project and Sanity codebase: first-week audit, access and ownership steps, red flags, and repair vs rebuild.
Gatsby's plugin ecosystem has stalled. Here's the real migration path to Next.js App Router, keeping Sanity, URL parity, and your editors sane.
Sanity vs Prismic side-by-side: schemas, GROQ vs query API, pricing, and which fits a Next.js App Router project in 2026.
Sanity vs Keystatic side-by-side: hosting model, editor UX, GROQ vs reader collections, and which fits your Next.js project in 2026.
Storyblok vs Sanity compared on DX, editor experience, pricing, and Next.js fit. Real trade-offs, no vendor spin.
A practical decision framework for headless CMS setup — covering team size, content velocity, channel count, and budget before you commit.
A practical process for building web apps for startups — discovery brief, thin-slice milestones, staging from day one, and a launch checklist.
Next.js in 2026 is more capable than ever — and more complicated. A practitioner's view on RSC, PPR, caching, and upgrade churn from production work.
A practical Next.js Tailwind workflow: design tokens as CSS variables, reusable component conventions, and a build sequence for shipping pages fast.
A production next.js typescript setup: strict tsconfig, typed routes, Zod boundaries, safe env vars, and a CI type-check gate that catches real bugs.
The React Next.js patterns I reuse on every project: server components by default, colocated data fetching, typed API boundaries, and error conventions.
Set up Next.js 16 with Tailwind CSS v4: the create-next-app flags that matter, and how the default setup compares with popular starter boilerplates over time.
Next.js route handlers and server actions work for many backend needs, but have real limits. Here's where they hold and where they break.
Vetting guide for founders and PMs: portfolio signals, App Router interview questions, Core Web Vitals checks, and real rate benchmarks for 2026.
A practical guide to the Next React stack — React, Next.js, hosting, CMS, and styling — what each layer does, why this combination won, and when to walk away.
Pages Router API routes vs App Router route handlers compared — caching, streaming, edge runtime, and a clear migration path with real code examples.
Static generation, pagination, image handling, and bundle discipline for a Next.js blog that doesn't slow down as content grows. Practical code included.
Switching from Contentful? Compare Sanity, Payload, Strapi, Storyblok, and Hygraph as Contentful alternatives for Next.js in 2026 — pricing, schema model, and fit.
Step-by-step guide to indexing Sanity content with native Embeddings, running a semantic query, and wiring a debounced search UI in Next.js App Router.
How to configure Sanity Agent Actions to trigger AI content workflows from the API — generate drafts, translate, and enrich fields at scale. Includes working code examples and real automation patterns.
Step-by-step setup of Sanity AI Assist (@sanity/assist) in a Next.js + Sanity project: install, config, field instructions, and real editor workflows. Updated for 2026.
Strapi vs Contentful 2026 — self-hosted open-source vs managed SaaS. Pricing, admin UX, API, Next.js fit, and lock-in compared honestly.
Step-by-step guide to Sanity Mux video playback in Next.js: signed URLs, hls.js adaptive streaming, poster images, and LCP optimisation.
Step-by-step: custom Sanity document actions to unpublish, archive, and restore content without deleting, plus Next.js front-end handling for archived docs.
A practical guide to Sanity scheduled publishing in Next.js: enabling scheduling in Studio, wiring SANITY_REVALIDATE_SECRET, and triggering ISR so content goes live on time.
Payload CMS vs Contentful compared on schema control, API, pricing curve, and Next.js fit for 2026. Pick the right tool before you commit.
Step-by-step guide to wiring the Sanity Presentation tool for live preview in Next.js App Router, with overlay clicks, live GROQ queries, and draft mode.
How useFormStatus, useActionState, and use() from React 19 changed the way I build forms and async UI in Next.js App Router. Concrete before/after code.
Step-by-step guide to Framer Motion page transitions in Next.js App Router, cutting CLS to 0 and lazy-loading animation features with LazyMotion to save bundle size.
An honest look at Next.js partial prerendering PPR in production — what it solves, where it breaks, and which page patterns benefit most.
A practical Next.js App Router tutorial guide for 2026. Covers layouts, route groups, Server Components, data fetching, static export, and the metadata API.
A step-by-step Sanity CMS + Next.js tutorial for developers setting up schemas, GROQ queries, and Sanity Studio with the App Router for the first time.
Next.js TTFB optimization in practice: Partial Prerendering for the shell, cached and streamed dynamic fragments, and tight GROQ projections — with illustrative before/after targets.