File-system based routing
File-system-based routing is a routing approach in which an application's files and directories determine its externally accessible routes and associated handlers or components.
Build Financial Software with Generative AI (From Scratch)
File-based routing is a routing technique in which filesystem paths and files determine application URL routes.
- How it is used
- Connects dashboard links to file-specific pages through folder-defined URLs.
- How deep it goes
- Demonstrates folder and link implementation, while deferring broader routing behavior beyond nested routes, layouts, and error handling.
- Examples
- Uses an app-directory route, a bracketed id folder, UUID-based URLs, and clickable uploaded filenames.
- What you can do after
- Build it by creating a route folder, adding a page file, and linking records to URLs containing their identifiers.
Build AI-Enhanced Web Apps
A routing approach in which an application's file and folder structure determines its routes and rendered components.
- How it is used
- Maps Next.js application folders and files to URL routes, rendered pages, dynamic segments, and shared layouts.
- How deep it goes
- Explains route mapping, dynamic params, project directories, and nested layouts, but does not cover deployment or testing.
- Examples
- Uses root, blog, and dynamic blog-post paths plus root and nested layout structures.
- What you can do after
- Build routes by arranging Next.js app folders, page.js files, dynamic segments, and layout.js wrappers.
Read how Build AI-Enhanced Web Apps explains file-system based routing →
Related concepts
- Next.jsused by · Next.js is a React-based web application framework that provides features such as routing, rendering strategies, server-side capabilities, and build tooling.
- routingalternative to · Routing is the selection of a path, destination, or processing component to direct an item, request, or flow toward an intended endpoint.
- childuses · A child is an entity or content directly contained within, nested in, or subordinate to a parent in a hierarchical or compositional structure.
- route segmentproduces · A route segment is a portion of a route path or hierarchy that represents a fixed value, a parameterized value, or an associated resource.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

