Deploy a Svelte App

Deploy SvelteKit as a static site — no server required

Last updated: February 20, 2026

SvelteKit 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.

1

Create your Svelte project

Scaffold a new project with the official SvelteKit / Vite CLI.

bash
npx sv create my-app
2

Build for production

Run the build command to generate static output in build/.

bash
cd my-app && npm run build
3

Deploy to ZeroDeploy

One command to push your site to the edge. It's live in seconds.

bash
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.

svelte.config.js
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-static for static deployment. Install it with npm i -D @sveltejs/adapter-static and update svelte.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 of build/.

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.