Static Sites Quickstart
Deploy a Vite, React, Astro, or exported Next.js frontend as a NexHost Static Site.
Static Sites Quickstart#
Use a Static Site when your project produces files that can be served without a running Node or application server.
Example: Vite and React#
npm create vite@latest my-site -- --template react
cd my-site
npm install
npm run buildThe build creates dist/index.html and its assets.
Configure the service#
- Select Static Site in New Project.
- Connect a repository, folder, or ZIP archive.
- Set Build command to
npm run build. - Set Publish directory to
dist. - Deploy and open the generated hostname displayed by the dashboard.
Other static outputs#
| Project | Publish directory |
|---|---|
| Astro | dist |
Next.js with output: "export" | out |
| SvelteKit with static adapter | build |
| Plain HTML | . |
If the application needs a runtime server after build, use Frontend App instead.