Skip to content

[codex] fix react tweet prerender#979

Merged
dillionverma merged 1 commit into
mainfrom
codex/fix-react-tweet-prerender
Jun 2, 2026
Merged

[codex] fix react tweet prerender#979
dillionverma merged 1 commit into
mainfrom
codex/fix-react-tweet-prerender

Conversation

@dillionverma

Copy link
Copy Markdown
Collaborator

What changed

  • Normalize tweet entity arrays before passing tweet data into react-tweet's enrichTweet.
  • Apply the same normalization to quoted tweets.
  • Regenerate the public tweet-card registry artifact and LLM reference output.

Why

Twitter's syndication API can omit empty entity arrays such as hashtags, urls, symbols, or user_mentions. react-tweet assumes those fields are iterable during enrichTweet, so production prerendering can fail with TypeError: c is not iterable on pages that render tweet cards.

Validation

  • pnpm --filter=www typecheck
  • pnpm --filter=www lint (passes with existing warnings in apps/www/registry/magicui/dia-text-reveal.tsx)
  • pnpm build (passes, including Generating static pages (381/381))

@vercel

vercel Bot commented Jun 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
magicui Ready Ready Preview, Comment Jun 2, 2026 1:56pm

@dillionverma dillionverma marked this pull request as ready for review June 2, 2026 13:57
@dillionverma dillionverma merged commit 6f57181 into main Jun 2, 2026
7 checks passed
@dillionverma dillionverma deleted the codex/fix-react-tweet-prerender branch June 2, 2026 13:57
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