JSON-LD duplicated in __next_f RSC payload → Google reports multiple AggregateRating
Unanswered
Yellowstripe scad posted this in #help-forum
Yellowstripe scadOP
Next.js 16.1.6 | App Router | Vercel
Following the official JSON-LD guide (https://nextjs.org/docs/app/guides/json-ld),
using native <script type="application/ld+json"> in app/layout.tsx Server Component.
Problem: the same JSON-LD ends up twice in HTML:
- once in <script type="application/ld+json"> ✅
- once escaped inside __next_f RSC payload ❌
Google sees aggregateRating twice → "Review has multiple aggregate ratings" error in Search Console.
Proof:
grep -o 'aggregateRating' page.html | wc -l → 2
aggregateRating is defined only once in code. Not using next/script (docs say don't for JSON-LD).
Is this expected? Is there an official fix?
Site: https://www.flowerstheory.com
Following the official JSON-LD guide (https://nextjs.org/docs/app/guides/json-ld),
using native <script type="application/ld+json"> in app/layout.tsx Server Component.
Problem: the same JSON-LD ends up twice in HTML:
- once in <script type="application/ld+json"> ✅
- once escaped inside __next_f RSC payload ❌
Google sees aggregateRating twice → "Review has multiple aggregate ratings" error in Search Console.
Proof:
grep -o 'aggregateRating' page.html | wc -l → 2
aggregateRating is defined only once in code. Not using next/script (docs say don't for JSON-LD).
Is this expected? Is there an official fix?
Site: https://www.flowerstheory.com