Skip to content

fix(docs): prerender Open Graph images at build time - #61

Merged
moshiur01 merged 1 commit into
mainfrom
fix/static-og-images
Nov 19, 2026
Merged

moshiur01 merged 1 commit into
mainfrom
fix/static-og-images

Conversation

@moshiur01

Copy link
Copy Markdown
Contributor

Link previews (Slack, X, etc.) showed no image: rendering /og on request goes past the free Workers CPU limit and fails with Cloudflare error 1102 (503) most of the time.

  • app/og/[...slug]/route.ts is a static route handler: next build prerenders one PNG per page at /og/<page path>.png (72 images), served from static assets.
  • Root, docs and registry page metadata point og:image / twitter:image at those PNGs.
  • Removes the dynamic /og?title=… route.
  • Drops the leftover .vercel entries from .gitignore and .prettierignore.

next build, typecheck and the OG/metadata tests pass locally.

Co-authored-by: Claude Opus 5.5 noreply@anthropic.com

Rendering an OG image on request runs past the free Workers CPU limit,
so /og failed with Cloudflare error 1102 and link previews showed no
image. Each page's image is now prerendered by next build at
/og/<page path>.png and served as a static asset.

Also drop the leftover .vercel ignore entries.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
docs f41dd4c Commit Preview URL

Branch Preview URL
Nov 19 2026, 05:13 AM

@moshiur01
moshiur01 merged commit 8435a73 into main Nov 19, 2026
2 checks passed
@moshiur01
moshiur01 deleted the fix/static-og-images branch November 19, 2026 05:29
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.

1 participant