0Pricing
Sveltejs Academy · Lesson

adapter-static for Static Sites

Prerender your entire site to static files with adapter-static.

What adapter-static Does

It prerenders your app to static HTML/CSS/JS files that any static host can serve.

Install

Replace adapter-auto in svelte.config.js.

npm install -D @sveltejs/adapter-static

All lessons in this course

  1. adapter-static for Static Sites
  2. adapter-node for Node.js Server
  3. adapter-vercel and adapter-cloudflare
  4. Building and Previewing
← Back to Sveltejs Academy