For the complete documentation index, see llms.txt. This page is also available as Markdown.

Svelte

Deploy standalone Svelte apps as static Vite builds on Hostinger, with plugin setup, hPanel build settings, and SvelteKit pointers for SSR needs.

Compile-time framework with no virtual DOM. Hostinger runs standalone Svelte apps as static bundles built with Vite.

app_type: svelte

Tip: If you want routing, server-side rendering, form actions, or API routes, use SvelteKit instead.

Static mode

Standalone Svelte on Hostinger is always static — Vite bundles your components into a directory of files.

package.json

{
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview"
  },
  "devDependencies": {
    "vite": "^5.0.0",
    "@sveltejs/vite-plugin-svelte": "^3.0.0"
  }
}

vite.config.js

hPanel settings

Field
Value

Application type

svelte

Build script

build

Output directory

dist

Entry file

— (static)

Server mode

Standalone Svelte doesn't have a server runtime. For SSR, use SvelteKit with adapter-node.

Notes

  • Scaffold a new project: npm create vite@latest my-app -- --template svelte

  • For TypeScript: --template svelte-ts


Last updated: July 21, 2026

Last updated

Was this helpful?