Docs

Deploying to Lagoon

How the static build reaches production.

Lagoon builds container images before it deploys them, so the CMS is unreachable at image build time. The Astro build therefore runs as a post-rollout task, once the cms service answers on its internal name.

Shared storage

The cli and nginx services share one persistent volume mounted at /app/dist. The task writes there; nginx serves from it.

Rebuilding

Publishing content does not rebuild the site on its own. Trigger a redeploy, or wire a Payload hook to the Lagoon API.