Skip to main content
Before you can deploy your SvelteKit app, you need to adapt it for your deployment target. Adapters are small plugins that take the built app as input and generate output for deployment.

Official adapters

SvelteKit provides official adapters for a variety of platforms:

Using adapters

Your adapter is specified in svelte.config.js:

Platform-specific context

Some adapters may have access to additional information about the request. For example, Cloudflare Workers can access an env object containing KV namespaces and other bindings. This information is passed to the RequestEvent used in hooks (see advanced/hooks) and server routes as the platform property:
Consult each adapter’s documentation to learn what platform-specific context is available.

Adapter capabilities

Different adapters support different features:

Community adapters

In addition to the official adapters, the community has created adapters for other platforms. You can find community adapters on npm by searching for “sveltekit-adapter”.

Creating custom adapters

If you need to deploy to a platform without an existing adapter, you can create your own. Adapters implement the Adapter interface from @sveltejs/kit:
Refer to the source code of official adapters for examples of how to implement custom adapters.