From fccb7d60f114e356df7298b66bbdaac7c2cebb27 Mon Sep 17 00:00:00 2001 From: Rama Priyanto Date: Mon, 17 Mar 2025 08:08:34 +0700 Subject: [PATCH] fixing metadata --- app/news/detail/[id]/page.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/news/detail/[id]/page.tsx b/app/news/detail/[id]/page.tsx index 2d242f4..40a2094 100644 --- a/app/news/detail/[id]/page.tsx +++ b/app/news/detail/[id]/page.tsx @@ -10,14 +10,13 @@ type Props = { export async function generateMetadata({ params }: Props): Promise { const res = await getArticleById(params.id?.split("-")[0]); const article = res?.data?.data; - return { title: article.title, description: article.description, openGraph: { title: article.title, description: article.description, - images: article.thumbnailUrl, + images: [`${article.thumbnailUrl}`], }, }; }