We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9f67be commit b92756bCopy full SHA for b92756b
app/(home)/[[...slug]]/page.tsx
@@ -56,11 +56,17 @@ export async function generateMetadata(props: { params: Promise<{ slug?: string[
56
57
if (!page) notFound();
58
59
- const metadataBase = new URL(getSiteUrl());
+ const slug = Array.isArray(params.slug) ? params.slug.join('/') : params.slug;
60
+
61
+ // const metadataBase = new URL(getSiteUrl());
62
63
return createMetadata({
64
title: page.data.title,
65
description: page.data.description ?? 'Usegrant documentation',
66
keywords: page.data.keywords,
67
+ // metadataBase,
68
+ openGraph: {
69
+ images: [`/docs-og/${slug}/image.png`],
70
+ },
71
});
72
}
0 commit comments