Deploy Vite (React, Vue, Svelte…)
How nesly detects, builds and serves a Vite (React, Vue, Svelte…) project — and the two commands that put it on a live URL.
Deploy Vite (React, Vue, Svelte…) on nesly
A Vite (React, Vue, Svelte…) project is built once and served as static files — no server process to keep alive.
cd your-project
nesly deploy --yes
The first deploy creates the project and prints the live URL; after that,
nesly deploy is enough.
How detection sees it
- A package.json depending on vite (and not on a fuller framework like Next or SvelteKit) is detected as a Vite app.
- The build runs and dist/ is served as static files. Create React App (react-scripts, build/) and Angular are recognised the same way.
When detection is not what you want, say it yourself: build and start commands, root
directory and output directory live in nesly.toml
committed next to the code — see builds.
Worth knowing
- A single-page app's client-side routes work out of the box — unknown paths fall back to index.html.
- Values the browser needs must be VITE_-prefixed env vars, set before the deploy that bakes them in.
-
When a deploy fails,
nesly diagnosereads the logs for you and names the fix.
Full walkthrough: get started. Custom domains, backups, GitHub deploys and the rest of the reference: nesly CLI.