Part 02 / Topic 9 of 9
Putting it together: reading the generated route types
Next.js 16 generates a type, AppRoutes, listing every route your harness actually resolves — the same mechanism Part 1 (section 8) used for LayoutProps<"/">. Grep it after building Apna Bazaar:
$ grep "^type AppRoutes" harness/.next/types/routes.d.ts
type AppRoutes = "/" | "/store" | "/store/about" | "/store/contact" | "/store/products" | "/store/products/[id]" | "/store/search/[...terms]"
Read this line against everything above and it lines up exactly: /store/about and /store/contact show no trace of the (info) group they live inside, and /store/products/[id] and /store/search/[...terms] show the literal bracket syntax — this generated file is not a separate source of truth, it is Next.js reporting back exactly the folder tree you built, which is the whole idea of file-based routing.
Done here? The practice set for Part 2 — including the solutions — is on the part page.