> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/node.js/overview-1/vite.md).

# Vite

Framework-agnostic bundler and dev server. Use this application type when your Vite project doesn't match a more specific framework (vanilla JS/TS, Lit, Solid, Qwik, etc.).

**`app_type`:** `vite`

## Static mode

Vite on Hostinger is always static.

### `package.json`

```json
{
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview"
  },
  "devDependencies": {
    "vite": "^5.0.0"
  }
}
```

### hPanel settings

| Field            | Value      |
| ---------------- | ---------- |
| Application type | `vite`     |
| Build script     | `build`    |
| Output directory | `dist`     |
| Entry file       | — (static) |

## Server mode

Vite's dev server is for development only. For SSR, use a framework that builds on Vite — [Next.js](/node.js/overview-1/next.md), [Nuxt.js](/node.js/overview-1/nuxt.md), [Astro](/node.js/overview-1/astro.md), [SvelteKit](/node.js/overview-1/sveltekit.md) — or write a custom Node server and use `other` as the application type.

## Notes

* Scaffold any Vite template: `npm create vite@latest`. Pick from React, Vue, Svelte, Preact, Lit, Solid, Qwik, or Vanilla.
* If your template matches a specific `app_type` (e.g. `react`, `vue`), prefer that — Hostinger picks better defaults.

***

*Last updated: July 22, 2026*
