diff --git a/api/blog/[slug].ts b/api/blog/[slug].ts index a51c5251..7404020f 100644 --- a/api/blog/[slug].ts +++ b/api/blog/[slug].ts @@ -57,7 +57,7 @@ async function fetchFromGhost(slug: string): Promise { return null; } - const data: GhostApiResponse = await response.json(); + const data = (await response.json()) as GhostApiResponse; const post = data.posts && data.posts.length > 0 ? data.posts[0] : null; if (!post) {