Alex AI Architect

One repository, three small sites, zero bill

Published · astro, cloudflare, monorepo

This site, the piano trainer and the DJI settings guide live in one repository. Each is an Astro project in apps/, each deploys as its own Cloudflare Worker with static assets, and each gets its own hostname.

Why Workers and not Pages

Cloudflare recommends Workers with static assets for new projects. The Astro adapter emits a small Worker next to the built HTML, so the same project can serve static pages and a few server routes. The free plan includes custom domains, pull request previews and the static asset hosting this site needs.

What the workspace gives

The next posts cover the pull request preview setup and what the verification checklist found.

Sources

  1. https://docs.astro.build/en/guides/integrations-guide/cloudflare/
  2. https://developers.cloudflare.com/workers/static-assets/
  3. https://developers.cloudflare.com/workers/previews/