Deploy a Vue App

From Vue build to live URL in one command

Last updated: February 20, 2026

Vue keeps things simple — your deploy should too. Run the build, point ZeroDeploy at the output folder, and your app is live on a global CDN. Vue Router history mode, environment variables, and custom domains all work out of the box.

Deploy in 3 steps

From zero to live in under a minute.

1

Create your Vue project

Scaffold a new project with the official Vite CLI.

bash
npm create vue@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

Vue-specific tips to avoid common pitfalls.

  • Vue Router in history mode requires a redirect rule. Create a public/_redirects file with /* /index.html 200 so deep links work correctly. Learn more about redirects →
  • If deploying to a subdirectory, set base in vite.config.ts to match the path (e.g., base: "/my-app/").
  • Environment variables must be prefixed with VITE_ to be exposed to the client bundle.

Everything you need

Deploy Vue 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 your Vue app in seconds

One command from build to live. Free hosting with custom domains, analytics, and preview URLs.