Why make the sitemap yourself?
The main reasons for me are:
- the flexibility you get
- not having to read through any documentation and learn a specific API
- not having to install a dependency (I always feel like that's a small victory)
Once you've set this up for the first time, repeating it becomes very straightforward. The template stays the same and can be used in all your Nuxt projects (and technically in non-Nuxt projects as well with small modifications). The only part that needs your attention is the data fetching and filtering, and that can be as custom as you want. It becomes very easy to reason about the logic since it is just a normal TypeScript file.
