You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Somehow the following +layout.ts doesn't enable prerender completely, meaning it will generate the index.html but won't put the statically rendered content in it:
<bodydata-sveltekit-preload-data="hover"><divstyle="display: contents"><!--[--><!--[--><!----><!----><h1>Welcome to SvelteKit</h1><p>Visit <ahref="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p><!----><!----><!----><!--]--><!--[!--><!--]--><!--]--><script>
...
</script></div></body>
Maybe this is intended but then im not shure why.
This repro is using svelte v5 so that could also be an issue.
This is intended. If you're setting ssr = false, then you'll get no server-rendered HTML and your app will essentially be an SPA. I believe prerender = true will continue to render out the underlying data and endpoint responses for that page, however.
Okay then the docs seem to be a bit unclear here. It sound like its either prerender or ssr. Most people will probably think the prerender option will already give them a fully prerendered page.
Describe the bug
Somehow the following
+layout.ts
doesn't enable prerender completely, meaning it will generate theindex.html
but won't put the statically rendered content in it:However when using:
The output is correctly prerendered:
Maybe this is intended but then im not shure why.
This repro is using svelte v5 so that could also be an issue.
Reproduction
https://github.com/domlen2003/sveltekit-ssr-prerender-repro
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: