Pages Router
Next.js Notes notes about Pages Router
Test and improve application performance
Turbopack in Next.js 16: What Changes in Development and Builds
Check route compilation, edit-time reuse, restart caching, and the build caching described in the Next.js 16.3 preview as separate behaviors.
Load, change, and refresh data
Fetch Build-Time Data with `getStaticProps` in a Pages Router Page
Use `getStaticProps` to fetch posts before requests arrive and pass them to a Pages Router page as serializable props.
Add an MDX Page to an Existing Nextra Documentation Starter
Add an MDX file to a Nextra starter’s pages directory, register its filename in the starter’s navigation metadata, and check both the URL and rendered navigation.
Test and improve application performance
Set Up Vitest in a Next.js Pages Router App—and Know Its Testing Boundary
Add a Vitest component test for a Pages Router page, then distinguish its heading assertion from a route-level check.
Choose an approach and configure the project
Next.js App Router vs Pages Router: Whether—and How—to Migrate
Keep stable Pages Router routes, and move routes selectively when App Router layouts, Server Components, or data fetching solve a real problem.
Test and improve application performance
Next.js vs React Performance: How to Run a Fair App Comparison
Compare matched apps and explicit rendering modes, then report response, paint, and interaction measurements under repeatable conditions.
Secure, deploy, and maintain an application
How to Check Whether Your Next.js Version Is Vulnerable—and Fix It
Check the version your project resolves, compare it with the advisory for the specific issue, and verify the fix after deployment.
Choose an approach and configure the project
Next.js vs React Router: Choose by Rendering, Data Flow, and Deployment
Compare Next.js with the React Router v7 mode you would actually use, then choose based on rendering, data flow, component boundaries, and deployment needs.
Choose an approach and configure the project
Next.js vs React: What to Decide Before You Choose
A requirements-first way to compare a React application with a proposed Next.js setup.
Secure, deploy, and maintain an application
Next.js Versions: What Changed from 13 to 16, and Which Versions Are Supported?
A practical comparison of Next.js 13–16, the supported lines in an August 2026 security snapshot, and the changes to check before upgrading.










