Deploy a Svelte App
Deploy SvelteKit as a static site — no server required
Last updated: February 20, 2026SvelteKit defaults to server-side rendering, but one config change turns it into a fully static site. Swap in adapter-static, run the build, and your Svelte app is live on a global edge network — no Node server needed. Plain Svelte (without SvelteKit) works with zero config.
Deploy in 3 steps
From zero to live in under a minute.
Create your Svelte project
Scaffold a new project with the official SvelteKit / Vite CLI.
npx sv create my-app Build for production
Run the build command to generate static output in build/.
cd my-app && npm run build Deploy to ZeroDeploy
One command to push your site to the edge. It's live in seconds.
zerodeploy deploy --dir build Configuration Required
SvelteKit uses server-side rendering by default. To deploy as a static site, you need to install and configure the static adapter.
import adapter from '@sveltejs/adapter-static';
export default {
kit: {
adapter: adapter({
fallback: '404.html'
})
}
}; Things to know
Svelte-specific tips to avoid common pitfalls.
- SvelteKit must use
@sveltejs/adapter-staticfor static deployment. Install it withnpm i -D @sveltejs/adapter-staticand updatesvelte.config.js. - Set
fallback: '404.html'in the adapter config if your app uses client-side routing, so deep links are handled correctly. - If you're using plain Svelte (not SvelteKit), the output directory is
dist/instead ofbuild/.
Everything you need
Deploy Svelte apps with the features you'd expect from a modern hosting platform.
Instant Deploys
Push to deploy in under 5 seconds. No queues, no build minutes to worry about.
Preview URLs
Every deployment gets a unique URL. Share any version instantly with your team.
Custom Domains
Connect your own domain with automatic SSL. Just add a CNAME and you're live. Learn more →
GitHub Actions CI/CD
Deploy on every push with GitHub Actions. Get PR comments with preview URLs. Set up CI/CD →
Built-in Analytics
See traffic, top pages, referrers, and countries right in your dashboard. No third-party scripts. Learn more →
Forms That Just Work
Add action="/_forms/contact" to any form. Submissions appear in your dashboard. Learn more →
Deploy other frameworks
ZeroDeploy works with any static build output.
Pair with a backend
Ship your Svelte app without a server
Static output, global edge delivery. Free hosting with custom domains, analytics, and instant preview URLs.