Static by default
How to publish a Vite site
Vite builds a plain static bundle, which is exactly what Droply serves. Build it, upload the folder, done.
- Build command
- npm run build
- Folder to upload
- dist
Free plan, free SSL, no credit card.
-
Build the project
Run npm run build in the project folder. This is the step Droply does not do for you: we publish finished pages, we never run your build.
-
Find the output folder
The build writes a finished site to dist. That folder, not the project folder, is what gets uploaded.
-
Drag it in
Drop the folder (or a ZIP of it) into Droply. It is live on an HTTPS droply.id subdomain in seconds, and re-uploading publishes a new version at the same URL.
Worth knowing about Vite
If your app uses client-side routing, set
basein vite.config.js to/before building, or asset paths come out wrong on a subdomain.
Did an AI tool build this project?
- Lovable hosting: Vite and React, building to dist. The best-documented export of the four, and the one most likely to need the SPA switch.
- bolt.new hosting: A full JavaScript project built in a browser sandbox. Take the code out, build it once, upload the output.
Hosting an AI-generated website covers the question that comes before the build command: whether what you are holding is a single file or a project, and which of the two every tool actually hands back.