Problem Statement
How does routing work in Next.js Pages Router?
Explanation
Next.js uses file-based routing where every file in the pages directory automatically becomes a route, with the file path mapping to the URL path without requiring any configuration.
For example, pages/about.js creates the /about route, and pages/blog/post.js creates /blog/post.
This convention-over-configuration approach simplifies routing, makes the application structure intuitive, and eliminates the need for route configuration files.
