Skip to content

Fix custom htmlLimitedBots handling for PPR metadata rendering#95425

Open
prempareesh wants to merge 1 commit into
vercel:canaryfrom
prempareesh:fix-95406
Open

Fix custom htmlLimitedBots handling for PPR metadata rendering#95425
prempareesh wants to merge 1 commit into
vercel:canaryfrom
prempareesh:fix-95406

Conversation

@prempareesh

Copy link
Copy Markdown

Summary

Fixes an inconsistency where htmlLimitedBots configured in next.config.js was respected by the routing layer but not consistently propagated through the rendering pipeline.

This could cause custom HTML-limited bots to trigger incorrect PPR resume behavior, resulting in missing metadata and React resume mismatch errors.

Changes

  • Propagate htmlLimitedBots to bot detection utilities.
  • Ensure consistent bot classification across Node.js and Edge rendering.
  • Update Pages Router and App Router handling.
  • Add a regression test covering custom htmlLimitedBots with PPR.

Fixes #95406

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.

Custom htmlLimitedBots UA not in built-in HTML_LIMITED_BOT_UA_RE breaks PPR resume and drops all page metadata

1 participant