Our great sponsors
-
svelte-sitemap
Sitemap generator for SvelteKit. Small helper which scans your SvelteKit routes and generates static sitemap.xml
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
We will use a module called Simplecrawler to scan the dev server. Then, the files will be stored in a variable. Since our module is a virtua module, when the user tries to import the URLs, then we return the sitemap.
It only works for static SvelteKit sites, but I've found [svelte-sitemap](https://github.com/bartholomej/svelte-sitemap) to work perfectly.