Category

Next.js

Explore our curated collection of articles, insights, and stories about Next.js.

4 Articles
Next.js Build Passed But Production Broke
Next.js
8 min read·2026-06-17

Next.js Build Passed But Production Broke

A green build only proves the bundle compiled. This postmortem walks through three production-only failures: missing Vercel env vars, Edge runtime imports, and cache behavior that changed after deploy.

Read more
Next.js Middleware Not Running on Vercel: 3 Causes
Next.js
8 min read·2026-06-17

Next.js Middleware Not Running on Vercel: 3 Causes

Middleware that works locally can disappear in Vercel production because the matcher never matches, Edge bundles a Node-only import, or auth middleware cannot read the token. This guide gives you the diagnosis order I use before touching app code.

Read more
Fix Module not found: Can't resolve 'encoding' in Vercel
Next.js
8 min read·2026-06-14

Fix Module not found: Can't resolve 'encoding' in Vercel

You see "Module not found: Can't resolve 'encoding'" in your Vercel deployment logs. This guide explains why it happens with cross-fetch/node-fetch and how to fix it permanently.

Read more
How to Access Route Parameter Inside getServerSideProps
Next.js
8 min read·2026-06-05

How to Access Route Parameter Inside getServerSideProps

Learn why your dynamic route parameter appears as undefined in getServerSideProps and how to correctly extract it from the context object for server-side data fetching.

Read more