SSR Build

To manually trigger the server-side build of all Svelte components, run:

npm run build:ssr

This creates or updates the public/svelte-ssr folder, including public/svelte-ssr/.vite/manifest.json.

You rarely need this by hand:

  • With watch_changes: true (development), the gem rebuilds automatically when a component changes.
  • rails assets:precompile runs this step too.