CrawlProof fix: Critical data ('0 coupons', '0 stores') rendered client-side with no SSR fallback#12
Merged
ralyodio merged 1 commit intoJun 9, 2026
Conversation
…dered client-side with no SSR fallback
vu1nz Security Review0 finding(s) in PR #? No security issues found. |
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.
CrawlProof automated fix for the following audit finding:
Check:
homepage.js_rendered(priority 1)What changed:
apps/web/app/page.tsxWhy:
Added
generateMetadatatoapps/web/app/page.tsxthat fetches live coupon/store counts at SSR time and embeds them in the page<meta description>, OpenGraph/Twitter description, and a JSON-LDWebPage+ItemListstructured-data block — all server-rendered into the HTML<head>before any JS runs. Added astatLabel()helper so that when the DB is unreachable (counts fall back to 0), the visible body text and all meta tags show "thousands of coupons / hundreds of stores" rather than the literal "0 coupons / 0 stores" that crawlers and answer engines were previously indexing. Also addedNumber()coercion on the raw DB count values to guard against SQLite returning them as strings.Generated by Claude Sonnet 4.6 in agentic mode (18 tool iterations). Review the diff before merging — automated edits are not infallible. Disagree with the change? Close the PR and apply the fix manually using the audit recommendations on your CrawlProof project page.
Docs: https://crawlproof.com/docs/aeo-score