Vite
Deploy framework-agnostic Vite projects as static sites on Hostinger, covering hPanel build settings, the dist output directory, and SSR alternatives.
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
{
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"vite": "^5.0.0"
}
}hPanel settings
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, Nuxt.js, Astro, SvelteKit — 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
Last updated
Was this helpful?