Documentation menu

Deploy a Svelte app on Light Cloud - detected from the Vite setup, built to dist, and served from the global CDN with free bandwidth.

Deploy Svelte

A Svelte single-page app (Vite-based, no SvelteKit server) is detected from its dependencies and deploys as a static site: npm run build fills dist/, and the CDN serves it with free bandwidth. No server, no region, no cold starts.

Build#

Environment variables#

Static builds run with the environment's variables set, so VITE_* values inline as usual, per environment.

Warning

Inlined values ship to every browser - never put secrets behind VITE_.

SvelteKit instead?#

Routing, server load functions, or form actions mean SvelteKit - a container under the SSR policy, or adapter-static back to the CDN.