From 81d8640cec12849bcb04f7fb8da7a86da5433784 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Mon, 8 Apr 2024 19:59:28 -0500 Subject: [PATCH] Small updates to blog. (#900) --- solutions/blog/app/blog/[slug]/page.tsx | 5 +---- solutions/blog/app/robots.ts | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/solutions/blog/app/blog/[slug]/page.tsx b/solutions/blog/app/blog/[slug]/page.tsx index 70bc0081f..4f4d298b6 100644 --- a/solutions/blog/app/blog/[slug]/page.tsx +++ b/solutions/blog/app/blog/[slug]/page.tsx @@ -1,4 +1,3 @@ -import type { Metadata } from 'next' import { notFound } from 'next/navigation' import { CustomMDX } from 'app/components/mdx' import { formatDate, getBlogPosts } from 'app/blog/utils' @@ -12,9 +11,7 @@ export async function generateStaticParams() { })) } -export async function generateMetadata({ - params, -}): Promise { +export function generateMetadata({ params }) { let post = getBlogPosts().find((post) => post.slug === params.slug) if (!post) { return diff --git a/solutions/blog/app/robots.ts b/solutions/blog/app/robots.ts index b3a91210d..7b535e0fc 100644 --- a/solutions/blog/app/robots.ts +++ b/solutions/blog/app/robots.ts @@ -8,6 +8,5 @@ export default function robots() { }, ], sitemap: `${baseUrl}/sitemap.xml`, - host: `${baseUrl}`, } }