SvelteKit Adapter
The SvelteKit adapter packages the default @sveltejs/adapter-node build
output into a standalone Kiln executable.
Requirements
Section titled “Requirements”- SvelteKit
@sveltejs/adapter-node- The default SvelteKit output directory:
build
The adapter is experimental. Plain Svelte + Vite applications are not detected by this adapter because Svelte is the component compiler, while SvelteKit provides the application server, routing, and deployment output.
Configure SvelteKit
Section titled “Configure SvelteKit”Use @sveltejs/adapter-node in the SvelteKit adapter configuration. Depending
on the Svelte CLI template version, this is configured in svelte.config.js
or in the sveltekit(...) plugin inside vite.config.ts.
import adapter from "@sveltejs/adapter-node";
export default { kit: { adapter: adapter(), },};For a current sv create project, replace @sveltejs/adapter-auto with
@sveltejs/adapter-node in vite.config.ts and keep adapter: adapter().
Build and compile
Section titled “Build and compile”bun run buildkiln -f sveltekit -o ./bin/appPORT=3000 ./bin/appKiln launches the official SvelteKit production server from build/index.js.
The bun-serve runtime engine and custom SvelteKit output directories are not
supported by this initial adapter. External production dependencies retained by
SvelteKit still require a real application fixture before this integration can
be considered production-ready.
