Server-side-rendering a Svelte 5 app (without Sveltekit or Vite)
Sveltekit comes with everything you need to build full-stack apps, but there are situations where you might need to 'manually' server-side render svelte components (or even a full svelte app). My use case was that I needed to render a Svelte component inside a Vercel serverless function, and upload the result to S3. And frankly, it's just plain fun to tinker and figure out how things work under the hood...
READ MORE