Skip to content

Process — /day/{n} page render

Source: docs/superpowers/specs/2026-05-23-07-public-site-archive-design.md §4. Renders a permanent archive page from the D1 mirror only; never wakes AuctionDO.

The edge serves a cached day page when available. Otherwise Astro loads the Spotlight, activity and engagement data, resolves the locale and renders the page with SEO metadata. The browser retrieves its social-preview image from the CDN.The edge serves a cached day page when available. Otherwise Astro loads the Spotlight, activity and engagement data, resolves the locale and renders the page with SEO metadata. The browser retrieves its social-preview image from the CDN.

Key invariants:

  • No call to AuctionDO. The D1 mirror is the only data source for public pages.
  • Locale resolves before any DB call so SSR HTML matches the cookie.
  • The OG PNG is fetched by the visitor’s client from the CDN — the worker never inlines binary.
  • If ad_status='revoked', the renderer still returns 200 with a “retracted” stub (E2).