Overview - Node.js adapter for self-hosting
What is it?
The Node.js adapter for self-hosting is a tool that lets you run Astro-built websites on your own Node.js server. It packages your site so Node.js can serve it directly, handling requests and responses. This means you can host your site anywhere Node.js runs, without relying on special platforms.
Why it matters
Without this adapter, deploying an Astro site would require specific hosting services or static hosting only. The adapter solves the problem of flexibility by letting you control your hosting environment fully. This means you can run your site on your own server, customize server behavior, and integrate with other Node.js tools easily.
Where it fits
Before learning this, you should understand basic Node.js and how Astro builds websites. After this, you can explore deploying Astro sites on cloud servers, using other adapters for platforms like Vercel or Netlify, or advanced server-side rendering techniques.
