File-Based Routing in Next.js 13+: The App Router Update

Before Next.js 13, routing was based on the “pages” directory, where each file inside it was considered a route. For example, a file named “pages/about.js” will create a route “/about” containing the content returned by about.js. This approach was created…