🔥 All-Access Pass — $199 USD (Regular $499) · Unlock all 2,836 Astro themes ➔
komal.nakrani
Get All-Access Pass ($199)
ThemesCategoriesDocsBlogTips & TricksPricingGet All-Access Pass ($199)
Astro Themes••By Komal Nakrani

Astro Hosting Cost: What Running an Astro Site Costs

Astro hosting cost explained: why static Astro sites often host for $0, what pushes you onto a paid plan, and how server rendering, images and seats change the bill.

#Astro#Hosting#Hosting Cost#Deployment

Astro hosting cost is often $0, because a default Astro build is a folder of static files that free tiers on Cloudflare Pages, Netlify, Vercel and GitHub Pages serve without charge for typical traffic. You start paying when you add server-rendered routes, need more build minutes or team seats, push very high bandwidth, or want features like password protection and advanced analytics. The domain name is usually the only fixed yearly cost.

Key Takeaways

  • Static Astro output needs no server, so free static hosting tiers cover most small and mid-size sites.
  • Paid plans are triggered by usage limits (builds, bandwidth, requests) and team features, not by Astro.
  • On-demand rendering adds serverless or edge function usage, which is metered separately.
  • Image optimisation at build time costs nothing on the host; runtime image services may be billed.
  • Check each host’s current pricing page; limits and prices change.

Why Astro sites are cheap to host

Run npm run build in a default Astro project and you get a dist/ folder of HTML, CSS, JavaScript and images. Serving files from a CDN is the cheapest kind of hosting there is. There is no PHP, no Node.js process to keep alive and no database. That is the main reason Astro hosting cost stays low.

# the whole site, ready to upload
npm run build
du -sh dist/

Compare that with a CMS like WordPress, which needs a server running PHP and MySQL around the clock, even when no one is visiting. Our article on what a CDN does explains why static files are so cheap to serve.

What free tiers include

Every major static host offers a free plan. The exact limits change, so read the host’s pricing page before you commit, but the shape is the same:

Host Free tier covers Typical upgrade triggers
Cloudflare Pages Static sites with generous bandwidth, a monthly build allowance More concurrent builds, Workers usage for SSR
Netlify Static sites, a monthly bandwidth and build-minute allowance Exceeding usage, team members, functions usage
Vercel (Hobby) Personal, non-commercial projects Commercial use, team seats, function usage
GitHub Pages Public repos and static sites It has no paid upgrade path for more capacity; move hosts instead

Note the licence-style limits, not only usage. Vercel’s Hobby plan is for non-commercial use, so a business site there belongs on a paid plan. GitHub Pages has published soft limits on site size and bandwidth and is not meant for commercial heavy traffic. Our free hosting for Astro comparison goes into each.

What makes you pay

Server-rendered routes

If you add an adapter and mark routes with export const prerender = false, those requests run as serverless or edge functions. Hosts meter function invocations and compute time. A site with a single on-demand contact handler barely registers; a site rendering every page per request uses far more.

// astro.config.mjs
import { defineConfig } from 'astro/config';
import cloudflare from '@astrojs/cloudflare';

export default defineConfig({
  output: 'static',
  adapter: cloudflare(),
});

With output: 'static' and an adapter, everything is prerendered except routes that opt out. That keeps the function bill small. Our guide on which Astro rendering mode to use helps decide which routes truly need a server.

Builds

Every push triggers a build. Free tiers cap build minutes or the number of builds per month. Large sites with thousands of pages, heavy image processing or many daily commits can exceed that. Two fixes cost nothing:

  1. Cache node_modules/.astro between builds so images and content are not reprocessed.
  2. Batch content edits instead of publishing every typo fix as its own deploy.

Bandwidth

Bandwidth is the size of files multiplied by visits. Astro keeps pages light by shipping no JavaScript by default, and astro:assets outputs compressed, resized images. Large video files are the usual culprit when a static site hits bandwidth limits; host video on a video platform instead.

Team seats and features

Many hosts charge per team member on paid plans and gate features like password-protected previews, role-based access, longer log retention and analytics. For an agency or a company with several editors, seats can be a bigger line than usage.

Hosting cost by site type

These are the patterns we see, not quotes:

Site type Likely plan Why
Portfolio, personal site, blog Free tier Static, low traffic, one owner
Small business site Free tier, commercial-friendly host Static, modest traffic
Startup marketing site with docs Free or entry paid tier Team seats, preview protection
Content site with heavy traffic Paid tier on a CDN-first host Bandwidth and build volume
Site with many on-demand routes Paid tier with function usage Compute per request

Other costs that look like hosting

  • Domain: billed yearly by your registrar, not your host.
  • DNS: free with most registrars and with Cloudflare.
  • Form backend: free under a monthly submission limit on most services.
  • Analytics: free options exist; privacy-focused paid tools bill monthly.
  • Image CDN: only needed if you transform remote images at request time.
  • Email: a separate service, never part of static hosting.

How to keep Astro hosting at $0

  1. Keep the site static; add an adapter only when a route needs it.
  2. Host on a provider whose free tier allows commercial use if it is a business site.
  3. Optimise images at build time with <Image /> and <Picture />.
  4. Keep video off your host.
  5. Cache build data so you stay under build limits.
  6. Put the hosting account in the site owner’s name so nothing is resold.

Our Cloudflare Pages deploy docs show the setup for a free static deploy. Every Komal Nakrani theme builds to static output with no server, database or auth layer, so it fits these free tiers as shipped; you can browse Astro themes to see the range. For hosts not covered here, the Astro deploy guides list setup steps for each.

Questions to ask before you pick a host

Pricing pages list headline numbers, but the bill depends on details. Before you connect a repo, check these:

  1. Does the free tier allow commercial use, or is it limited to personal projects?
  2. What happens when you exceed a limit: does the site pause, slow down, or start billing automatically?
  3. Are build minutes counted per build or per month, and do preview deploys count?
  4. Are function invocations billed separately from bandwidth, and at what threshold?
  5. Is each extra team member a paid seat, or can editors work through Git without an account?
  6. Can you set a spending cap or usage alert?

The answers matter more than the headline price. A plan that pauses your site at the limit is safe for a hobby project and risky for a business. A plan that bills automatically never goes down but needs an alert so a traffic spike does not surprise you.

Moving hosts later

Because static output is just files, switching hosts is cheap. Connect the repo to the new host, set the build command to npm run build and the output directory to dist, then move DNS. If you added an adapter, swap it for the new host’s adapter. There is no data migration because there is no database.

FAQ

How much does it cost to host an Astro site?

For a static Astro site, often nothing beyond the domain. Free tiers from Cloudflare Pages, Netlify and GitHub Pages cover typical traffic. Costs appear with server rendering, team seats, high bandwidth or commercial use on hosts whose free plan is non-commercial.

What is the cheapest host for Astro?

Any static host with a free tier that permits your use case. Cloudflare Pages and Netlify both allow commercial static sites on free plans within usage limits. GitHub Pages is free for public repositories.

Does server-side rendering make Astro hosting more expensive?

Yes, usually. On-demand routes run as functions, and hosts bill function invocations and compute. Keep most pages prerendered and render only the routes that need it to keep costs low.

Can I host an Astro site on shared hosting?

Yes, if it is static. Upload the contents of dist/ to the web root over FTP or SFTP. You lose automatic deploys from Git, so a static host is usually easier.

Do I need a paid plan for a business Astro site?

Not always. Check whether the host’s free tier allows commercial use. Cloudflare Pages and Netlify do within limits; Vercel’s Hobby plan does not, so business sites there need the paid plan.