Build and deploy
Zero-config deployments
Editar esta página na GitHubWhen you create a new SvelteKit project with npm create svelte@latest
, it installs adapter-auto
by default. This adapter automatically installs and uses the correct adapter for supported environments when you deploy:
@sveltejs/adapter-cloudflare
for Cloudflare Pages@sveltejs/adapter-netlify
for Netlify@sveltejs/adapter-vercel
for Vercelsvelte-adapter-azure-swa
for Azure Static Web Appssvelte-kit-sst
for AWS via SST
It's recommended to install the appropriate adapter to your devDependencies
once you've settled on a target environment, since this will add the adapter to your lockfile and slightly improve install times on CI.
Environment-specific configurationpermalink
To add configuration options, such as { edge: true }
in adapter-vercel
and adapter-netlify
, you must install the underlying adapter — adapter-auto
does not take any options.
Adding community adapterspermalink
You can add zero-config support for additional adapters by editing adapters.js and opening a pull request.
anterior Adapters
próximo Node servers