From bfd3c6c89d2d037a6895e5f9eee345dcf74d8598 Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Tue, 20 Jan 2026 15:06:19 +0100 Subject: [PATCH] [dyad] Removed @graph from schema results - wrote 1 file(s) --- src/app/actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/actions.ts b/src/app/actions.ts index 9a792ce..9f4fb8d 100644 --- a/src/app/actions.ts +++ b/src/app/actions.ts @@ -64,10 +64,10 @@ export async function extractMetaData(url: string, keyword?: string) { try { const data = JSON.parse(jsonContent); - schemaData.push(data); - const graph = data["@graph"] || [data]; + schemaData.push(...graph); + for (const item of graph) { if (item["@type"] === "FAQPage" && Array.isArray(item.mainEntity)) { item.mainEntity.forEach((qa: any) => {