Static or server-rendered?
Static (default)
- What you deploy
- A folder of HTML, CSS and JavaScript
- Where it runs
- Any web host or CDN
- Best for
- Blogs, docs, marketing sites
Server-rendered (SSR)
- What you deploy
- A server app built with an adapter
- Where it runs
- Node.js hosting or a platform with adapter support
- Best for
- Logins and per-request logic
Most content sites are happy as static builds. Choose SSR only when you need per-request logic.
Deploying a static Astro site
- Buildastro build creates a dist folder
- UploadSend dist to the host
- HTTPSEnable a free certificate
- LivePoint your domain at the host
Which hosting type fits
| Type | Static site | SSR | Effort | Control |
|---|---|---|---|---|
| Shared hosting | ||||
| VPS | ||||
| Developer platform |
Editorial ratings from 1 (weak) to 5 (strong).
What to look for in a host
- Fast, cached delivery
Static sites are fast with good caching and compression.
- Easy deploys
SFTP, Git integration or a CI-friendly workflow.
- HTTPS and redirects
Free certificates and control over redirect rules.
- Node.js support
Only needed if you plan to use SSR.
Static or server rendering?
Astro can output plain static files or run on a server. Static output works on any host and a CDN. Server output needs a Node.js host or a platform with an Astro adapter. Choose static unless you need per-request logic; see static site hosting and the official deployment guide.
What does deployment look like?
- Build
Run the build to produce the output folder.
- Upload or connect git
Copy files to the host or let a platform build from git.
- Set the domain and HTTPS
Point DNS and enable a certificate.
- Add redirects and headers
Configure them in the host or a rules file.
What should you check in a host?
- Static file hosting or an Astro adapter for server output.
- Build time and minutes limits on platforms.
- Redirect and header support.
- CDN and HTTP/3; see what a CDN is.