fix: suppress hydration warning on json-ld script

This commit is contained in:
trafficlunar 2025-09-13 11:53:06 +01:00
parent aa97cd813e
commit 59b0b939c7

View file

@ -78,6 +78,7 @@ export default function RootLayout({
<head> <head>
<script <script
type="application/ld+json" type="application/ld+json"
suppressHydrationWarning
dangerouslySetInnerHTML={{ dangerouslySetInnerHTML={{
__html: JSON.stringify(jsonLd).replace(/</g, "\\u003c"), __html: JSON.stringify(jsonLd).replace(/</g, "\\u003c"),
}} }}