svelte-sitemap icon indicating copy to clipboard operation
svelte-sitemap copied to clipboard

Does not recognize svelkit pages

Open hortigado opened this issue 10 months ago • 1 comments

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 image image image

hortigado avatar Apr 05 '24 15:04 hortigado

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;

mstibbard avatar May 16 '24 00:05 mstibbard