Automatically generate sitemap.xml in SvelteKit
2 min readAug 13, 2023
For SEO a sitemap.xml is crucial, however manually creating one only once is already a very annoying task, which is even worst if your website get more and more pages often.
Required Packages
For this to work we will need to install some npm packages first:
npm install directory-tree