About
This is a small test site. It exists to prove out a specific stack end to end: content authored in MDX, compiled by Astro into static HTML, and served from Cloudflare’s edge with a Worker in front for anything dynamic.
The stack
| Layer | Choice | Why |
|---|---|---|
| Content | MDX | Markdown prose, with components where it helps |
| Framework | Astro | Zero JavaScript shipped unless asked for |
| Hosting | Cloudflare Workers | Static assets at the edge, plus a Worker runtime |
How the build works
astro build renders everything to static HTML in dist/. Wrangler then
uploads that directory as the Worker’s static assets:
{
"main": "worker/index.js",
"build": { "command": "npm run build" },
"assets": {
"directory": "./dist",
"binding": "ASSETS",
"not_found_handling": "404-page"
}
}
Requests for /api/* are answered by the Worker. Everything else falls through
to the built site, and unmatched paths land on the 404 page Astro generated.
No client-side JavaScript
Astro renders components at build time and ships the HTML. Nothing on this site hydrates, so there is no framework runtime to download. View source on any page and you will find markup and a stylesheet.