Repository navigation
fix(docs): prerender Open Graph images at build time - #61
Merged
Merged
Conversation
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>
Deploying with
|
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link previews (Slack, X, etc.) showed no image: rendering
/ogon request goes past the free Workers CPU limit and fails with Cloudflare error 1102 (503) most of the time.app/og/[...slug]/route.tsis a static route handler:next buildprerenders one PNG per page at/og/<page path>.png(72 images), served from static assets.og:image/twitter:imageat those PNGs./og?title=…route..vercelentries from.gitignoreand.prettierignore.next build, typecheck and the OG/metadata tests pass locally.Co-authored-by: Claude Opus 5.5 noreply@anthropic.com