Skip to content

feat: extract build-only OG cards and gate published routes - #362

Merged
shitratgit[bot] merged 5 commits into
mainfrom
worker/ogcart
Nov 25, 2026
Merged

shitratgit[bot] merged 5 commits into
mainfrom
worker/ogcart

Conversation

@shitratgit

@shitratgit shitratgit Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Moved the OG renderer, fonts, emoji and path helper into build-only @rat-stack/og. Satori and resvg keep their exact pins. The lockfile changes only the workspace importers.
  • Site exports check the emitted page list and sitemap. Foldkit checks the routes it actually prerendered. Each HTML route needs a versioned absolute card URL, matching Twitter and OG metadata, and a 1200×630 PNG. Machine routes have explicit reasons for exclusion.
  • The boundary rule and the actual Worker and production bundle checks reject the cartridge and both renderers in runtime graphs.

Proof

  • Compared SHA-256 by route against 637b08e2: all 332 PNGs match byte for byte.
  • Planted /lore/og-gate-plant as a real Foldkit prerender route without an image. Foldkit wrote its HTML, then the build exited 1 with the route, missing PNG, and file to fix. Removed the plant.
  • Foldkit: 319 prerendered, 319 with cards, 0 excluded. Site export and discovery: 366 candidates, 331 with cards, 35 machine/raw routes excluded.
  • Worker static startup bytes, before → after: Catalog 749,349 → 749,349; Mischief 1,163,635 → 1,163,772; Learn auth 644,885 → 644,885; Workshop 780,345 → 780,345; Turbo Cache 495,904 → 495,904. RpcBackend is now measured too: 871,216 bytes (no baseline). No renderer modules appeared in the upload graphs or the Foldkit production bundle.
  • The committed-tree pnpm turbo run check test build --summarize passed all 106 tasks under muster-heavy. Both commits passed their hooks.

SR 🐀

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a4184b60-8507-44ad-9168-ba0e867d3edc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shitratgit
shitratgit Bot merged commit a218e38 into main Nov 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants