Routing
The web app uses the Next.js App Router with file-based routing.
Route structure
Protected routes
Authentication is handled in the root layout middleware:
Dynamic routes
Product pages use dynamic segments:
Data is fetched server-side with the db package: