This implements server-side rendering (SSR) in a Svelte application.
To run the app locally without SSR:
npm run dev
To run the app with SSR:
npm install
npm run build:ssr
npm run serve
The primary files to examine are
src/App.svelte
, src/server.js
, and rollup.ssr-config.js
.