fix: unblock prod build — Satori display:flex in OG images#30
Merged
Conversation
Next/og (Satori) errors when a block <div> has more than one child without
explicit display:flex. Two OG routes violated this and aborted the Vercel
production static-generation step (the second of the two blockers keeping
openaffiliate.dev on a 36-day-old build):
- opengraph-image.tsx: title <div> had text + colored <span> + text. Made it
display:flex + flexWrap and split into spans.
- rankings/opengraph-image.tsx: subtitle <div> had text + {expr} + text.
Flattened to a single template-literal child.
Verified with a full local production build (874/874 static pages generated,
all OG images included). NOTE: also present in the open-affiliate-pro SSOT —
mirror there or the next sync re-breaks the build.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Second of the two pre-existing blockers keeping openaffiliate.dev stuck on a 36-day-old prod build (the first,
cacheComponents, was fixed in #29).Next/og (Satori) aborts the build when a block
<div>has >1 child withoutdisplay:flex:opengraph-image.tsx— title div (text + colored<span>+ text) →display:flex+flexWrap, split into spans.rankings/opengraph-image.tsx— subtitle div (text +{programs.length}+ text) → flattened to one template-literal child.programs/[slug]/opengraph-image.tsxuses<span>(inline, fine) so it was unaffected.Verified: full local prod build green —
✓ Generating static pages (874/874), all OG images render.open-affiliate-proSSOT — mirror both fixes there or the next sync re-breaks the build.🤖 Generated with Claude Code