Skip to content

Deploying

Here’s guides on how to deploy Astro projects using Domain Expansion to different providers:

Vercel

It just works.

Netlify

It just works.

Without Docker

It just works. (Just retain the node_modules/ directory as that is where the build cache lives)

Docker (Coolify etc.)

In Docker, we recommend using cache mounts. Here’s how to use them within a Dockerfile:

RUN --mount=type=cache,target=/app/node_modules/.domain-expansion npm run build

Other than that,
It just works.



Seeing a pattern here?