fix: split JSON-LD array into separate script tags - fixes @context.toLowerCase error

This commit is contained in:
AyrisAI
2026-07-25 17:56:16 +03:00
parent b1fd19d2fd
commit feacc27157
+12 -7
View File
@@ -90,13 +90,12 @@ export default async function RootLayout({
className={`${jakartaSans.variable} ${jetbrainsMono.variable} dark h-full antialiased`} className={`${jakartaSans.variable} ${jetbrainsMono.variable} dark h-full antialiased`}
> >
<body className="min-h-full flex flex-col bg-slate-950 text-slate-100 font-sans selection:bg-red-500 selection:text-white tracking-normal leading-relaxed" suppressHydrationWarning> <body className="min-h-full flex flex-col bg-slate-950 text-slate-100 font-sans selection:bg-red-500 selection:text-white tracking-normal leading-relaxed" suppressHydrationWarning>
{/* Organization + WebSite JSON-LD — global entity recognition */} {/* Organization JSON-LD */}
<script <script
type="application/ld+json" type="application/ld+json"
suppressHydrationWarning suppressHydrationWarning
dangerouslySetInnerHTML={{ dangerouslySetInnerHTML={{
__html: JSON.stringify([ __html: JSON.stringify({
{
'@context': 'https://schema.org', '@context': 'https://schema.org',
'@type': 'Organization', '@type': 'Organization',
name: 'ayris.tech', name: 'ayris.tech',
@@ -109,8 +108,15 @@ export default async function RootLayout({
], ],
description: description:
'ayris.tech is a YouTube channel and resource portal publishing tutorials on Next.js, React, TypeScript, Python, AI agents, Docker, and modern full-stack development.', 'ayris.tech is a YouTube channel and resource portal publishing tutorials on Next.js, React, TypeScript, Python, AI agents, Docker, and modern full-stack development.',
}, }),
{ }}
/>
{/* WebSite JSON-LD */}
<script
type="application/ld+json"
suppressHydrationWarning
dangerouslySetInnerHTML={{
__html: JSON.stringify({
'@context': 'https://schema.org', '@context': 'https://schema.org',
'@type': 'WebSite', '@type': 'WebSite',
name: 'ayris.tech YouTube Portal', name: 'ayris.tech YouTube Portal',
@@ -123,8 +129,7 @@ export default async function RootLayout({
target: { '@type': 'EntryPoint', urlTemplate: `${BASE_URL}/en/lessons?q={search_term_string}` }, target: { '@type': 'EntryPoint', urlTemplate: `${BASE_URL}/en/lessons?q={search_term_string}` },
'query-input': 'required name=search_term_string', 'query-input': 'required name=search_term_string',
}, },
}, }),
]),
}} }}
/> />
<Script <Script