Next.js uses file-based routing under /app (or /pages for older versions).

Example Routes:

Route Component / Page Access
/ HomePage Public
/login LoginPage Public
/dashboard DashboardLayout → DashboardPage Authenticated
/profile ProfilePage Authenticated

Dynamic Routing Example:

/posts/[id].tsx → Post detail page