Skip to content

SvelteKit hosting

SvelteKit hosting.

Deploy a SvelteKit app with adapter-node and Lahyer runs it as a Node.js server, or with adapter-static and it is served as static files from a global edge. Both get HTTPS, previews and logs.

Deploy your project
adapter-nodeRuns as a Node.js server
adapter-staticServed as static files
PreviewsA URL for every pull request

What Lahyer does with it

How SvelteKit builds and runs.

Lahyer fills these in from your repository. Change anything that does not fit in the project's build settings.

How Lahyer builds and runs SvelteKit
Detected from@sveltejs/kit in your package.json dependencies
Adapteradapter-node (server) or adapter-static (static), read from svelte.config.js
Installnpm, pnpm, Yarn or Bun, chosen from your packageManager field or lockfile
BuildYour build script, or vite build
Outputbuild/

SvelteKit documentation

Your first deploy

Three steps
to a live URL.

Pick the adapter.

Replace adapter-auto with @sveltejs/adapter-node for server rendering, or @sveltejs/adapter-static for a fully prerendered site.

Connect the repository.

Import it from GitHub or GitLab. Lahyer reads svelte.config.js and fills in the build settings.

Push and ship.

Every push deploys, pull requests get preview URLs, and you can roll back without rebuilding.

A few useful answers

Before you begin.

Does adapter-auto work?

Not on Lahyer yet. Install @sveltejs/adapter-node or @sveltejs/adapter-static and use it in svelte.config.js. Lahyer tells you when it finds another adapter.

Do form actions and server load functions work?

Yes, with adapter-node. They run on the Node.js server Lahyer starts.

Will my app sleep on the free plan?

Server apps on Free sleep when idle and start again on the next request, which can take a moment. Pro keeps one production app always on.