Kick off a software project quickly.

SvelteKit Stack

SvelteKit Stack — Node.js LTS, PM2 and Nginx preconfigured for SSR or static SvelteKit production deployments.

1 GB (static), 2 GB (SSR) RAM 1 vCPU Available

Tech stack

Node.js LTSPM2Nginx
Minimum RAM1 GB (static), 2 GB (SSR)
Minimum CPU1 vCPU
Compatible OSChoice of Linux distributions

SvelteKit Stack provisions your VPS with the complete toolchain a SvelteKit project needs in production: Node.js LTS from the official NodeSource repository, PM2 for zero-downtime process management, and Nginx as the TLS-terminating reverse proxy.

SvelteKit's adapter-node produces a standalone Node server — a persistent process that keeps database connections open and responds without cold starts. Form actions, server-side `load` functions, and `+server.ts` endpoints all run in a single runtime you control. Unlike serverless deployments, you avoid per-invocation billing and execution time limits.

Key features

Node.js LTS from the official NodeSource repository — the current stable release, not the outdated distro package.
PM2 process manager — zero-downtime reloads, log rotation, startup scripts, and cluster mode for multi-core VPS.
Nginx reverse proxy with gzip compression and long-lived Cache-Control headers for versioned static assets.
Compatible with SvelteKit's @sveltejs/adapter-node for standalone SSR and adapter-static for fully pre-rendered sites.
No cold starts — the Node server process is persistent, keeping database connections pooled between requests.
WebSockets and SSE supported, enabling real-time features that serverless platforms restrict or complicate.

When to use this solution?

1

SSR web application

Deploy a full SvelteKit app with form actions, server-side load functions, and API endpoints. PM2 supervises the Node process with automatic restart and zero-downtime reloads between deployments.

2

Static site hosting

Build your project with adapter-static, upload the build/ folder, and serve it from Nginx with no Node process running. Near-zero memory footprint and instant response times.

3

API backend for a SvelteKit frontend

Co-host your SvelteKit frontend and a REST API on the same VPS. Nginx routes /api/* requests to a separate service while SvelteKit handles everything else — all behind a single TLS-terminated domain.

Deploy SvelteKit Stack on your VPS

Guide optimized for ServOrbit Cloud VPS.

01

Create the VPS

Select the SvelteKit Stack template. 1 GB RAM is sufficient for a static site; 2 GB for SSR with PM2 and a co-hosted database.

02

Configure the adapter

In svelte.config.js, set adapter: node() from @sveltejs/adapter-node for SSR, or adapter: static() from @sveltejs/adapter-static for a fully pre-rendered site.

03

First access

This template installs a toolchain (Node.js LTS, PM2, Nginx). There is no web interface to open — connect via SSH and deploy your own SvelteKit project.

04

Build and deploy

Run npm run build locally or in CI. Transfer the build/ folder to the VPS and start with pm2 start build/index.js --name svelte-app. Set ORIGIN=https://yourdomain.com — required for form action CSRF validation.

05

Configure Nginx

Proxy requests to http://127.0.0.1:3000 with appropriate proxy_set_header directives. Enable proxy_http_version 1.1 and the Upgrade header if your app uses WebSockets. Obtain a Let's Encrypt certificate with Certbot.

Frequently asked questions

Both install Node.js LTS, PM2, and Nginx. SvelteKit targets reactive web applications with form actions, server-side load functions, and real-time features. Astro targets content sites and hybrid rendering — it ships zero JavaScript by default and runs a lighter Node process for SSR pages.

Embed the deploy button

Maintaining a project that uses SvelteKit Stack? This button lets your readers deploy it on a VPS in one click, without reading Docker documentation.

Deploy SvelteKit Stack on ServOrbit
Markdown
[![Deploy SvelteKit Stack on ServOrbit](https://servorbit.com/brand/deploy/button.svg)](https://servorbit.com/vps-cloud?template=sveltekit-stack&utm_source=deploy-badge&utm_medium=referral&utm_campaign=sveltekit-stack)
HTML
<a href="https://servorbit.com/vps-cloud?template=sveltekit-stack&utm_source=deploy-badge&utm_medium=referral&utm_campaign=sveltekit-stack"><img src="https://servorbit.com/brand/deploy/button.svg" alt="Deploy SvelteKit Stack on ServOrbit" height="40"></a>

The button points to a VPS order with the template preselected. The image is served from servorbit.com — nothing to host on your side.

Kick off a software project quickly.

Activate SvelteKit Stack on your infrastructure.

Dedicated Cloud VPS — IPv4 included, European datacenter, support included. Your data never leaves your server.

Recommended configuration: 1 GB (static), 2 GB (SSR) RAM · 1 vCPU

Need help?

Browse our help center and FAQ, or reach our team — callback, WhatsApp or email. Support in French, English and Arabic.