Next.js in Practice · Part 0816 min read
Route Handlers and Proxy
How route.ts handlers are dispatched and when a GET is prerendered, and how proxy.ts (the renamed middleware) runs before routing, matches paths and talks to the router through response headers.