Sitemap & Robots

The project exposes two Metadata routes:

  • /sitemap.xml generated by src/app/sitemap.ts
  • /robots.txt generated by src/app/robots.ts

Adding pages to sitemap

Edit src/app/sitemap.ts and add static page paths to the routes array. The generator prefixes them with NEXT_PUBLIC_BASE_URL.

Controlling crawlers

Edit the disallow list in src/app/robots.ts to restrict crawlers from private routes (e.g., /api, /dashboard).