0
Next.js 13 introduced a new routing system using the app directory. Next.js 12 already provided an easy way of handling routes through file-based routes. Adding a component to the pages folder would automatically make it a route. In this new version, the file-system-based router comes with a built-in setup for layouts, templates nested routing, a loading UI, error handling, and support for server components and streaming.