Astro deploy recipe

Astro can ship a site two ways: plain files in dist/ that any web server can serve, or a server bundle in dist/server/ that must run as a Node process. Which one you have depends on output, on the adapter, and on whether any page sets export const prerender = false. Paste your config, tick what the site does, and this page prints the commands and config for a Linux VPS. Nothing leaves your browser.

What the site does

What the recipe relies on

To compare static hosts, managed Node platforms and VPS for each mode, with the dist/client and dist/server details and what a Node server costs per month, see the companion guide how to host an Astro site on html5advent.com.