For correct SEO I need to map each of my routes. I am trying to avoid installing react plugins, since Netlify has this option, I would like to use it. Is there a way how to achieve it ?
The Sitemap plugin, as far as I can see, SPA’s are not supported, even with pre-rendering.
Sitemaps are not generated by “clicking through” your website, aka indexing it. It’s generated solely based on the files in the published folder, which for a SPA would usually only be a index.html, which is why it’s all you see.
It depends on where your “public” files are located, if you’re using Vue, it would usually be a folder called public.
If you use Vue or React, then there are better ways, modules specific to those frameworks that generates a sitemap based on your router during the build. For a site with dynamic data (Data coming from an API) and routes, then it can be quite a pain, but if your routes a pretty much static, it’s a nice solution.
Edit: It’s not “One file” either, it’s basically one file for every page you have. Imagine that you made a website the good old 90’s way, and had a seperate file for every single page you have. That’s what you need for Netlify’s plugin to work, return to the 90’s