Readme

Svelte SSR Starter

This val shows how to compile and run a Svelte app in Val Town with server rendering and client hydration.

The clever part of this app is that we compile the Svelte code for the server and dynamically import it on the server to generate the server HTML.

If you are looking for simpler client-side-only rendering, check out svelteStarter.

Thanks Rich Harris for getting this working!

Code
HTTP
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
stevekrouse-sveltessrstarter.web.val.run
Updated: February 27, 2025