Book a call Free rebuild
Home/Glossary/Astro/Astro Adapter

Astro Adapter

By Seahawk November 16, 2026

Astro glossaryAn Astro adapter lets a site render pages on demand on a particular platform, such as Cloudflare, Netlify, Node.js, or Vercel.

An adapter connects an Astro project to the server it will run on. Astro builds static HTML by default and needs no adapter for that. To render any page on request (on-demand rendering), Astro has to output code for a specific runtime, and the adapter does that.

Astro maintains four official adapters: @astrojs/cloudflare, @astrojs/netlify, @astrojs/node, and @astrojs/vercel. You add one with astro add, for example npx astro add cloudflare. Adapters can also bring platform features to a static site, such as a host's image CDN.

See deploying Astro to Cloudflare Workers for the Cloudflare adapter in practice.

Source: Astro docs: On-demand rendering.

Em Workers

EmDash and Astro sites at revolutionary pricing.

Lightning-fast, secure websites delivered on EmDash and Astro. For the AI-curious bunch.