Coolify logoCoolify

SvelteKit

Svelte Kit is a framework for building web applications of all sizes, with a beautiful development experience and flexible filesystem-based routing.

Static build (adapter-static)

You need to use @sveltejs/adapter-static (docs) adapter to build a static site.

  1. Set your site to static on (under Build Pack section).
  2. Set your Publish Directory to /build

Node server (adapter-node)

You need to use @sveltejs/adapter-node (docs) adapter to build a node server based SvelteKit app.

  1. Set Static to off (under the Build Pack section).
  2. Set your Install Command to npm install.
  3. Set your Build Command to npm run build.
  4. Set your Start Command to node build.
  5. Click Save.
  6. In your Environment Variables tab, check the current Node version supported by Nix. In the example screenshot below, it's version 22.
  1. Add engines to your package.json with the Node version from your environment variables. For example
"engines": {
		"node": ">=22"
}
  1. Git Commit
  2. Click Deploy from your Coolify Dashboard
  3. Add an Environment Variable ORIGIN with your app's actual domain. For example:
  4. Optional, but recommended: Go to the Healthcheck tab and click Enable Healthcheck

On this page