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. Under General > Build pipeline, choose Static in Site type.
  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. Under General > Build pipeline, choose Dynamic in Site type.
  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. Select Save changes.
  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: open Healthcheck, select Enable, and confirm Enable healthcheck

On this page