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.
Previous
How does SSR (Server-Side Rendering) work in SvelteKit?
Next
What is the difference between prerendering, SSR, and CSR in SvelteKit?
More Svelte / SvelteKit Questions
View all →- Intermediate What are Svelte custom stores and the store contract?
- Intermediate How does SSR (Server-Side Rendering) work in SvelteKit?
- Intermediate What is the difference between prerendering, SSR, and CSR in SvelteKit?
- Intermediate How do you manage environment variables in SvelteKit?
- Intermediate What are Svelte actions (use:)?