Sitemap
Learn how to generate a sitemap for your supastarter app.
The sitemap is a file that lists all the pages of your app. It's essential for SEO, as it helps search engines understand your app and its pages.
The sitemap of your supastarter application is automatically generated by Next.js, but if you add new pages or change the routes of your marketing pages, you need to make sure the sitemap reflects these changes.
You can find the configuration for the sitemap in the apps/web/sitemap.ts
:
If you want to add static marketing pages to the sitemap, you can do so by adding the path of it to the staticMarketingPages
array.
If you want to add dynamic paths to the sitemap, you need to get all possible paths and then map them to the sitemap like we do for the posts, legal pages and docs.
Learn more about how to generate a sitemap in the offical Next.js documentation.