How we generate the sitemap for the website.
sitemap.ts
). The generation process scans different directories in the project and creates sitemap entries for various types of content:
app
directory to collect all page routes:
app
folder_
) which are typically internal/private routes(
) which are usually Next.js route groupscontent/blog
directory.mdx
extension from filenamescontent/legal
directory.mdx
extensionsblog/
pathlegal/
pathlastModified
timestamp (set to the current date)