fix(webapp): use blocking fallback for ISR pages to fix SEO#5676
fix(webapp): use blocking fallback for ISR pages to fix SEO#5676
Conversation
Switch posts, tags, and sources pages from `fallback: true` to `fallback: 'blocking'` so crawlers always receive fully rendered HTML with proper meta tags, canonical URLs, OG tags, and structured data instead of an empty skeleton page. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@claude please review this pr |
|
Claude finished @nimrodkra's task in 1m 30s —— View job PR Review
SummaryThe fix is correct and well-motivated. Switching from Observations✅ Core change is correctAll three
|
Address PR review feedback:
- Remove dead isFallback checks from posts, sources, and tags pages
since fallback: 'blocking' means isFallback is always false
- Fix sources page soft 404: return { notFound: true } instead of
{ props: { source: null } } so search engines see a proper 404
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@claude let's run a quick 2nd round of review |
|
Claude finished @nimrodkra's task in 1m 20s —— View job Second Round Review
All issues flagged in the first review have been addressed. Here's the second-pass breakdown: ✅ sources/[source].tsx — fully cleaned up
✅ tags/[tag].tsx — fully cleaned up
|
The query variable from useRouter() was only used in the removed isFallback block. ESLint correctly flags it as unused. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
fallback: true→fallback: 'blocking'on posts, tags, and sources pagesfallback: true, crawlers receive an empty skeleton HTML (~2.5KB) with generic title, no canonical, no OG tags, no H1, and no contentfallback: 'blocking', Next.js waits forgetStaticPropsto complete before responding, ensuring crawlers always get the fully rendered page (~12KB+) with all SEO metadataContext
Ahrefs site audit (Mar 5) found ~18,753 pages flagged across multiple SEO categories — all caused by the same root issue:
All are post/tag/source pages from sitemaps that Ahrefs crawled during ISR fallback, receiving skeleton HTML instead of rendered content.
Test plan
🤖 Generated with Claude Code
Preview domain
https://fix-isr-fallback-blocking-seo.preview.app.daily.dev