Pages Router files
What you need to know
The Pages Router maps files under pages to URLs and uses special files for shared application UI, document markup and error pages. It remains supported; it is not the same architecture as the App Router.
By the end, you can: map pages to URLs; explain _app and _document.
Wrap Pages Router pages with shared UI
// pages/_app.tsximport type { AppProps } from 'next/app';import Link from 'next/link';export default function App({ Component, pageProps }: AppProps) { return <><header><nav aria-label="Main"><Link href="/catalog">Catalog</Link></nav></header><Component {...pageProps}/></>;}Expected behavior: The active Pages page receives its props and renders inside shared navigation. App Router pages need their own layout.
How it works
A default-exported component in pages/index.tsx represents /, while pages/catalog/index.tsx represents /catalog. Dynamic files such as pages/catalog/[slug].tsx represent variable segments. A Pages component does not require the App Router page.tsx convention or use client directive for ordinary client interaction. _app wraps active page components and receives Component and pageProps; use it for shared providers, global CSS and common navigation, or a per-page layout convention. Adding getInitialProps to custom App can disable automatic static optimization for pages without static props, so do not adopt it for new data fetching casually. _document customizes the outer HTML on the server and is not the place for interactive shared navigation or page data functions. pages/404.tsx and pages/500.tsx provide custom error pages. App and Pages directories can coexist when their public routes do not conflict. Keep this fixture root-mounted and Cache Components disabled.
Map a file inventory to routes
pages/index.tsx -> /pages/catalog/index.tsx -> /catalogpages/catalog/[slug].tsx -> /catalog/:slugpages/_app.tsx -> wrapper, not /_apppages/_document.tsx -> document, not /_documentpages/404.tsx -> custom not-found pageExpected behavior: Special files have framework roles; they are not ordinary content routes.
Common mistake
Do not add interactive menus to _document or rename every Pages file to page.tsx. Do not add a competing app/catalog/page.tsx while pages/catalog/index.tsx still owns /catalog.
Practice and verification
Inspect the two router fixture directories. Draw a route ownership table and identify where global CSS, document language and interactive navigation belong.
Scope: Proposed Next.js 16.x, React 19, Node runtime. Root-mounted Pages and mixed-router fixtures with Cache Components disabled; the basePath example is separate. Framework examples are staged, not executed. Exact patched dependencies and platform contracts pending.