Under the hood

HOW THIS
SITE IS BUILT.

A studio front door should be boring to run. This one is static files on Cloudflare, with a short list of rules we hold every site in the portfolio to. The rules below summarize this site’s own configuration, including the exceptions.

THE STACK

Framework
Astro 7, fully static output. No server rendering, no sessions, no content collections.
Styling
Tailwind CSS. Four self-hosted typefaces: Anton, Inter, JetBrains Mono, Permanent Marker.
Hosting
Cloudflare Workers with the static-assets binding. Every push to main deploys through Cloudflare Workers Builds.
Images
Pre-rendered files served as-is (Astro passthrough image service). No image-resizing service at runtime.
Analytics
Google Analytics 4, loaded only after a visitor presses Accept. Declining changes nothing about the site.
Email
Cloudflare Email Routing forwards contact@ and takedown@. There is no form backend and nothing is stored.

THE RULES

01

Locked-down Content-Security-Policy

Scripts load from this origin plus Cloudflare Insights and Google Analytics (the Google tag stays off until consent). Images and fonts load from this origin, with data: URIs allowed. Inline styles are allowed. Framing is denied and plugins are blocked.

02

No prefetch-everything

Site-wide link prefetching is switched off (prefetchAll is false), a fleet-wide rule, so pages are fetched when a visitor navigates, not speculatively.

03

Fonts from our own origin

Typefaces ship as woff2 files from /fonts/, with the display face preloaded and font-display set to swap, so a cold first visit still renders in the brand type.

04

Committed snapshots, not build-time guesses

The numbers on the receipt page and the social cards are generated by scripts, then committed. The production build has no access to the ops logs or a browser, so it never invents or refreshes them. Each snapshot prints its capture date.

TWO TRAPS WE HIT

Both are written into this repo’s notes because they cost a failed deploy. If you run Astro on Cloudflare Workers, check yours.

The adapter that quietly asks for a KV namespace

With @astrojs/cloudflare v14, a fully static site still gets a session KV binding auto-enabled unless session is set to false in the Astro config. The build passes. The deploy then fails, because the namespace was never provisioned. We set session: false and left a comment on it.

The 404 page that never served

On Workers static assets, a miss returns the platform default unless not_found_handling is set to "404-page" in wrangler.jsonc. Having a 404.astro file is not enough; the config line is what wires it up.