I didn’t have to fetch the sitemap.xml as long as you have a anchor tag linking to it somewhere. Mine is in my footer. It’s pretty common practice to do this so others know you have a RSS feed.
I did something similar for my site khrome.dev
One thing the file based approach does not solve is if you use any of the dynamic routing, for example blog slugs.
So you may have to build that list separate and then manually call add those separate as you expand your site.
Really great write up though!
You taught me something, thank you 😄 !
PS: Your website looks very nice !
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.