SR-002 — Media Asset Delivery: System Requirements

By Engineering Team•October 12, 2026•4 min read
Metadata Details
System Name astro-static-site Asset & Deployment Specifications
Document ID SR-STATIC-002
Author Engineering Team
Status Draft / Implementation

Traces back to BRD-002 — Cost-Free Media Delivery & Lightweight Repository. The site build and hosting are in SR-001, the media address in SR-003, caching and edge protection in SR-009. Cite requirement IDs with the document ID (e.g. SR-002 SR-F-03).


1. Functional System Requirements

ID Description Traceability (BRD)
SR-F-03 (Asset Storage) Architecture diagrams, images and other media are stored in each environment’s Cloudflare R2 media bucket (<assets-bucket>), never committed to Git and never in the build: the release fails if dist/images exists. BR-1.2, BR-1.3
SR-F-04 (Upload and Release) A person uploads new or changed images to the non-production bucket only (scripts/upload-media.sh); each release copies the images its pages link into that environment’s bucket (SR-005 SR-F-10). BR-3.2

2. Non-Functional & Security Requirements

ID Specification Traceability (BRD)
SR-NF-01 (Repository Hygiene) Images live in the git-ignored images/ folder, so no image file is committed. BR-1.3
SR-NF-02 (Zero Egress) The media storage and delivery solution (Cloudflare R2 + CDN) must use zero-egress-fee pricing to eliminate bandwidth overage costs. BR-1.2