When defining routes as prerendered, @sveltejs/adapter-node generates .html-pages under build/prerendered which was missing in the list of files to move to the .svelte-kit/adapter-iis folder. It works fine while navigating from a hydrated route but trying to reload or access a prerendered route directly causes a 500 error.
I added the prerendered folder to the list and also a fs.accessSync check before trying to move each file in the list, if there's no prerendered folder it crashed.
When defining routes as prerendered,
@sveltejs/adapter-node
generates .html-pages underbuild/prerendered
which was missing in the list of files to move to the.svelte-kit/adapter-iis
folder. It works fine while navigating from a hydrated route but trying to reload or access a prerendered route directly causes a 500 error.I added the prerendered folder to the list and also a
fs.accessSync
check before trying to move each file in the list, if there's noprerendered
folder it crashed.