Blog

Next.js Dynamic Route Segments
Most of the routes in a real application aren't known ahead of time. A blog doesn't have a finite list of URLs baked into its file structure — it has
Dive Deeper
Next.js dynamicParams
generateStaticParams tells Next.js which specific values of a dynamic segment to prerender at build time. But real traffic doesn't always stick to
Dive Deeper
Ensuring instant navigations
Every framework promises fast navigation. Next.js is one of the few that gives you a way to actually verify it, route by route, before a user ever co
Dive Deeper
Nextjs Environment variables
Every non-trivial application needs a way to keep secrets, connection strings, and per-environment settings out of the codebase. A database password
Dive Deeper
Next.js error.js
An error.js file gives a route segment its own React error boundary, automatically. Instead of manually wrapping trees of components in error-catch
Dive Deeper
Nextjs fetch function
Every Next.js developer meets fetch on day one, and most of them assume it behaves exactly like the fetch they already know from the browser. It
Dive Deeper