Pages Router
The original Next.js router, where files in pages/ became routes and data was loaded with special functions.
In more detail
The Pages Router renders every component in the browser as well as on the server and uses API routes for back-end endpoints. The App Router replaces these with Server Components and Route Handlers.
Related terms
- App Router — The Next.js routing system built on React Server Components, where folders inside app/ define the routes.
- API routes — The Pages Router way of writing back-end endpoints: files in pages/api that export a handler taking req and res.
Taught in
- Route Handlers: RESTful Endpoints with NextRequest — Next.js 15 & Modern App Router Architecture