Deploy a Vite App

Built with Vite? One command to go live.

Last updated: February 20, 2026

Vite powers the dev experience for React, Vue, Svelte, and vanilla JS projects. Regardless of which template you started with, the deploy process is the same: build to dist/, upload, done. ZeroDeploy handles the rest — SSL, CDN, custom domains.

Deploy in 3 steps

From zero to live in under a minute.

1

Create your Vite project

Scaffold a new project with the official Vite CLI.

bash
npm create vite@latest my-app
2

Build for production

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

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 dist

Things to know

Vite-specific tips to avoid common pitfalls.

  • The default base: '/' works for root deployments. Only change it if deploying to a subdirectory.
  • For SPAs with client-side routing, create a public/_redirects file with /* /index.html 200. Learn more about redirects →
  • Vite supports vanilla JS, React, Vue, Svelte, and more via templates. The build output is always in dist/ regardless of the template.

Everything you need

Deploy Vite 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

Deploy any Vite project

React, Vue, Svelte, or vanilla — if Vite built it, ZeroDeploy can host it. Free to start.