SR-003 — Site and Media Hosts: System Requirements
By Engineering Team•October 12, 2026•4 min read
| Metadata | Details |
|---|---|
| System Name | astro-static-site Site and Media Hosts Specifications |
| Document ID | SR-STATIC-003 |
| Author | Engineering Team |
| Status | Draft / Implementation |
Traces back to BRD-003 — One Domain for Website & Media. The build is in SR-001; the zone’s protections and caching that cover both hosts are in SR-009. Cite requirement IDs with the document ID (e.g. SR-003 SR-F-03).
1. Functional System Requirements
| ID | Description | Traceability (BRD) |
|---|---|---|
| SR-F-02 (Site on the Apex) | Pages are served by the environment’s Cloudflare Pages project on the apex <domain>, attached as its custom domain; www.<domain> points to the apex. |
BR-1.1 |
| SR-F-03 (Media on the Assets Subdomain) | Media is served from the environment’s R2 media bucket at assets.<domain>, a subdomain of the same domain, attached as the bucket’s custom domain in the site’s own zone, with the bucket’s public r2.dev address off. No Worker sits in the media path (ADR-003). |
BR-1.1 |
| SR-F-04 (Relative Markdown Links) | Markdown content references images by root-relative path (/images/...); the build rewrites each to the environment’s media address. |
BR-1.1 |
2. Non-Functional & Security Requirements
| ID | Specification | Traceability (BRD) |
|---|---|---|
| SR-NF-01 (Single Certificate) | TLS termination uses the zone’s one certificate, which covers <domain> and assets.<domain>, managed at the Cloudflare edge. |
BR-1.1 |
3. Open Items
- Per-environment media address. Because SR-F-03 puts the media host in the HTML, each environment builds separately (ADR-005).