English
CONFIG
SSOT Configuration site.config.yaml
Single canonical configuration defining canonical domain, image CDN hosts, SQLite page/chunk sizing, hosting budgets, and feature flags across build and browser modules.
View full configuration contract ↗✅ Capabilities
- Drives generated _headers, _redirects, edgeone.json, wrangler.jsonc, and esa.jsonc via build:config
- Enforces search.request_chunk_size === db.page_size and integer multiple chunk alignment
- Validates bare hostnames so DNS CNAME platform swaps never leave stale hardcoded origins
⛔ Explicit Limits / Rejections
- Production releases reject placeholder hosts such as example.org or localhost
- Caps images.hosts at 2 CDN hosts and pins search.min_match_length strictly to 3
- Rejects R2/Cloudflare/ESA secrets inside config; esa remains an empty object {}
Fields, Arguments & Invariants
site.domainconfighostnameRequired / EnforcedProtocol-free canonical host; also populates GitHub Pages CNAME.
images.hostsconfighostname[1..2]Required / Enforced1–2 public CDN hostnames reading privately from Cloudflare R2 via SigV4.
db.page_size / chunk_sizeconfignumberRequired / EnforcedDefault: 4096 / 65536page_size must be a power of 2 in 512–65536; chunk_size must be an integer multiple.
budgets.max_files / max_file_bytesconfignumberRequired / EnforcedDefault: 18000 / 20971520Conservative global budget ceilings; never relaxed above 18,000 files or 20 MiB.
Outputs & Failure Conditions
SiteConfig ObjectStrict schema validated object consumed identically across generators and @gallery/search
Validation ErrorFails fast with dot-separated paths on unknown keys or alignment mismatches