tezvyn:

What is a SvelteKit adapter and how do adapter-static and adapter-node differ?

Source: svelte.devintermediate

Tests your grasp of SvelteKit's deployment abstraction. A strong answer outlines how adapters compile the app for a target platform, contrasting adapter-static's CDN-ready HTML with adapter-node's server-side request handler for Node environments.

Tests your understanding of how SvelteKit decouples application code from deployment infrastructure via the adapter pattern. A strong answer defines an adapter as a plugin that transforms Vite build output into a platform-specific deployment bundle, then sharply contrasts adapter-static, which pre-renders pages into static files for edge CDNs and cannot handle server routes without fallback configuration, with adapter-node, which emits a Node server capable of dynamic SSR and API endpoints.

Read the original → svelte.dev

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

What is a SvelteKit adapter and how do adapter-static and adapter-node differ? · Tezvyn