Astro hosting, fully managed.
Static or server-rendered.

Deploy your Astro site on HCode, managed app hosting from HostAfrica. Static pages, on-demand rendering and a PostgreSQL database, with no server for you to run.

Billed monthly. Cancel anytime.

One pushPush to main and it is live. No servers to set up, no config to fight, just a URL you can send to someone.
PostgreSQLYour database sits right next to your app and gets backed up every day. Grab the connection string and get on with it.
SSL and rollbacksHTTPS is on from the first deploy. Shipped something broken? Roll back to the last good one and breathe.
From $3/moOne flat price in your currency. No surprises when the exchange rate moves, no guessing what next month costs.

Astro first.The rest of your stack too.

Astro is a Node.js project, so HCode detects it and builds it for you. Put an API, a Python worker or Redis beside it, or bring your own Dockerfile.

Read the docs

Your ambition.A plan to match.

Start small. Make something that matters. Grow from there.

Billing period
HCode plans compared
SoloSmall beginnings. Big possibilities.DeveloperMore room for your next release.ProA home for your production apps.TeamYour whole team. One platform.Enterprise

$3/mo

Billed monthly

$2.75/mo

$33 billed yearly

Save 8%

$12/mo

Billed monthly

$11/mo

$132 billed yearly

Save 8%

$60/mo

Billed monthly

$55/mo

$660 billed yearly

Save 8%

Custom

Talk to sales
Projects3520Custom
DatabasesPostgreSQL or Redis1320Custom
Compute
RAM1 GB4 GB16 GBCustom
Storage10 GB20 GB80 GBCustom
Usage and features
Backup retentiondaily backups3 days7 days60 daysCustom
Enterprise
Single sign-onSAML / OIDCNot includedNot includedNot includedIncluded
Invoiced billingannual contractNot includedNot includedNot includedIncluded

Every plan includes

  • Managed PostgreSQL
  • Custom domains & SSL

All prices in USD. Annual figures show the monthly equivalent, billed yearly.

From git pushto a live Astro site.

Connect a GitHub repository or upload a .zip. HCode installs your dependencies, runs your build and serves the result with SSL, whether that is a folder of static pages or a Node.js server.

Create a project

Deploy to My Organization

  1. 1Source
  2. 2Build settings
  3. 3Details
GitHubDeploy from repo
UploadDeploy a .zip

Import from GitHub

your-next-big-ideamainConnected
Continue

Create a project

Deploy to My Organization

  1. ✓Source
  2. 2Build settings
  3. 3Details

Build

  1. $ git push origin main
  2. Repository connected: main
  3. Astro detected: preparing build
  4. Running astro build...
  5. Build complete

Create a project

Deploy to My Organization

  1. ✓Source
  2. ✓Build settings
  3. 3Details

your-next-big-idea

Live
  1. Provisioning app + PostgreSQL in South Africa…
  2. SSL configured
  3. Deployment complete

Built for the wayAstro sites ship.

Most Astro pages are static, but a contact form, a login or live data needs a server. HCode serves both from the same repository, so adding server features never means moving host.

  • Static or on-demand, your call.

    Ship a fully static build, or add the Node adapter in standalone mode and HCode keeps the server it outputs running for on-demand pages, endpoints and actions.

  • PostgreSQL for your server routes.

    Every HCode plan includes managed PostgreSQL on a private network beside your app. Your endpoints and actions query it through one connection string, and HCode backs it up every day.

  • Keys that stay off the page.

    Set API keys and the database URL as environment variables in the panel. They are stored encrypted and stay out of your repository, and only the ones you prefix with PUBLIC_ reach the browser.

  • Push, and the site rebuilds.

    Every push to your branch starts a new Astro build. Content and code deploy the same way, and a build that fails leaves the live site as it was.

  • Undo a release in a click.

    Published a broken page? Put the previous deploy back from the panel while you work on the fix.

  • A subdomain now, your domain later.

    Every project gets a free subdomain on its first deploy. Add your own domain when you are ready and HCode provisions its SSL certificate.

More than a static host.The toolchain is built in.

Managed PostgreSQL and Redis, SSL, daily backups and rollbacks come with every HCode plan, so your Astro site can take on server features without a new host.

  • A database, not a detour.

    Managed PostgreSQL and Redis alongside your app, on its own private network. Keep your data close and your setup simple.

  • Secure from the start.

    Your own domain with automated SSL, encrypted secrets and built-in backups. The essentials come with you.

  • Go forward. Roll back.

    A new release goes live without downtime, and one that fails its checks never replaces the app that is running. Need the last one back? Roll back in a click.

One platform.Three ways to build.

Side projects, SaaS products and client work all deploy the same way on HCode. Here is what that looks like for you.

Developers

Less config.More creation.

Give your next side project a real home. Connect your repository and get back to the part you love: building.

  • Framework detection
  • Git deployments
  • Live build logs

SaaS teams

Build the product.Keep your momentum.

Keep your app, its database and its background workers together, with the building blocks your product needs as it grows.

  • Managed PostgreSQL
  • Environment variables
  • Rollbacks

Agencies

Client work.Without the busywork.

A modern workflow for every client. Every project gets a free subdomain the moment it deploys; add the client’s own domain when they are ready, give each teammate the right role, and bill predictably in your currency.

  • Multiple projects
  • Custom domains
  • Free subdomains

Tell us what you are building and we will help you choose.

code.

Let’s buildsomething great.

Tell the HostAfrica team what you have in mind. They’ll help confirm HCode availability and the right plan for your project.

Opens HostAfrica’s contact page. No account or payment is created here.

So, why HCode?Let’s compare.

Chances are you have shipped on Vercel, Netlify, Railway or Render, or your AI builder does it for you. All good tools. Here is what changes when your app and its database live in Africa.

code.VercelNetlifyRailwayRender
App runs in AfricaYes: Yes, in South AfricaCape Town on request; defaults to Washington, D.C.No African regionUS, Netherlands, SingaporeUS, Germany, Singapore
Database beside the appYes: Managed PostgreSQL, same placeThrough a marketplace partnerThrough a partner-backed databaseManaged PostgreSQL, same regionManaged PostgreSQL, same region
Billed inUS dollarsUS dollarsUS dollarsUS dollarsUS dollars
Where you startYes: From $3/mo, always onFree Hobby plan, personal and non-commercial use onlyFree plan with a credit capA one-off trial credit, then a paid planFree instances sleep after 15 minutes idle
Push from GitHub, custom domain, SSLYes: YesYesYesYesYes
SupportYes: Direct from the HostAfrica teamGlobalGlobalGlobalGlobal

Astro on HCode,questions answered.

Have something else in mind?

Talk to our teamBrowse the docs

Can HCode host a server-rendered Astro site?

Yes. Add the @astrojs/node adapter in standalone mode and HCode runs the Node.js server your build produces, so on-demand pages, API endpoints and actions work as they do locally. A fully static build deploys too.

Is HCode a good fit for a fully static Astro site?

Yes, and it leaves room to grow. When the site needs a form handler, a login or pages backed by a database, add the Node adapter and keep the same repository, domain and deploy flow.

Who looks after the servers?

HostAfrica does. HCode is managed hosting: we run the servers and the PostgreSQL database, and you push your code and manage the site from the HCode panel.

Is a database included?

Yes. Every HCode plan comes with managed PostgreSQL, backed up every day, so there is no separate database to buy. The plan table on this page shows how many databases each plan includes.

How do I move an Astro site from another host?

If the site uses an adapter for another host, switch it to @astrojs/node. Then connect the GitHub repository or upload a .zip, copy your environment variables into the panel and deploy. A PostgreSQL database imports from a .sql file or a pg_dump archive. Talk to our team if you would like help with the move.

What support do I get?

HostAfrica support is available 24/7, and live chat is open during business hours. The HCode docs walk through the platform step by step.

How do I get started?

Pick a plan on this page and order it in the HostAfrica panel, then connect your repository. Not sure which plan fits? Talk to our team and we will help you choose.