svelte-sitemap
svelte-sitemap copied to clipboard
Does not recognize svelkit pages
Hello, I am trying this great tool but I have a problem and it is that it does not recognize the subdirectories. What am I doing wrong? Thank you
You are not prerendering those routes hence svelte-sitemap
does not see them.
Refer to the SvelteKit docs but as an example: your routes/login/+page.svelte
will be server side rendered unless you add a +page.js
(or +page.server.js
or +server.js
) containing export const prerender = true;