CodeZettaInterview Hub

Next.js · SEO · Junior · Live Coding

How do you add a sitemap in App Router?

Short Interview Answer

Use `app/sitemap.ts` (or xml) to generate Sitemap standards output.

Detailed Explanation

Include only canonical URLs. Update as content changes. For huge sites, multiple sitemaps/index files.

Did you know this answer?