Deploy a Vite App
Built with Vite? One command to go live.
Last updated: February 20, 2026Vite 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.
Create your Vite project
Scaffold a new project with the official Vite CLI.
npm create vite@latest my-app Build for production
Run the build command to generate static output in dist/.
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 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/_redirectsfile 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.