What are SvelteKit adapters?

Answer

SvelteKit adapters transform the built SvelteKit app for deployment to a specific platform. They bridge SvelteKit's output and the target runtime. Configure in svelte.config.js: import adapter from '@sveltejs/adapter-node'; export default { kit: { adapter: adapter() } }. Available adapters: adapter-node: Node.js HTTP server (Heroku, VPS, Docker). adapter-vercel: Vercel serverless functions with edge support. adapter-netlify: Netlify functions. adapter-cloudflare: Cloudflare Workers and Pages. adapter-static: pre-renders entire site as static HTML/JS (no server needed, deploy to GitHub Pages, S3). adapter-auto: automatically detects the deployment platform. Each adapter generates the right output format — Node.js server file, serverless function ZIP, or static files. Adapters make SvelteKit platform-agnostic while optimizing for each target.