Type something to search...

Blog

Next.js Route Groups

Next.js Route Groups

Not every folder in your app directory needs to correspond to a URL segment. As a project grows, you'll often want to organize routes by team, feat

Dive Deeper
Next.js Route Handlers

Next.js Route Handlers

Every framework eventually has to answer the question "what if the client just needs raw JSON, not HTML?" In the Pages Router, the answer was API Rou

Dive Deeper
Next.js route.js

Next.js route.js

route.js is the file convention behind Route Handlers — the App Router's mechanism for defining custom request handlers for a given route, built di

Dive Deeper
Next.js Route Segment Config

Next.js Route Segment Config

Behind the friendly file conventions of the App Router — page.js, layout.js, route.js — sits a small set of plain exported variables that let y

Dive Deeper
Next.js instant

Next.js instant

Prefetching promises fast navigations, but a prefetched route can still feel slow in practice if something inside it — an uncached fetch, a runtime A

Dive Deeper
Next.js prefetch

Next.js prefetch

A <Link> component expresses intent — "prefetch this destination, and how eagerly." But the destination itself has no way to know, ahead of time, w

Dive Deeper