From 9c864b541407986aea9b26274da33759305aec00 Mon Sep 17 00:00:00 2001 From: Kevin Stubbs Date: Thu, 17 Oct 2024 17:28:11 +0200 Subject: [PATCH] Fix starters build. --- starters/nextjs-starter/lib/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/starters/nextjs-starter/lib/utils.js b/starters/nextjs-starter/lib/utils.js index 2408de08..a3c570c1 100644 --- a/starters/nextjs-starter/lib/utils.js +++ b/starters/nextjs-starter/lib/utils.js @@ -42,7 +42,7 @@ export function getSeoMetadata(article) { switch (key) { case "author": { if (typeof v === "string") { - authors = [v]; + authors.push(v); } break; } @@ -58,7 +58,7 @@ export function getSeoMetadata(article) { const authorName = getAuthorById(v)?.name; if (authorName) { - authors.push({ name: v }); + authors.push(v); } } break;