Skip to content

Commit

Permalink
Set metadataBase URL in page metadata generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ProchaLu committed Jan 7, 2025
1 parent 772d9b3 commit 61dff1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/[contentType]/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export async function generateMetadata({ params }: Params): Promise<Metadata> {
(await params).contentType,
);
return {
metadataBase: new URL('http://localhost:3000'),
title: `${title} | ${info.site.siteTitle}`,
description: description ?? info.site.siteDescription,
openGraph: {
Expand Down

0 comments on commit 61dff1b

Please sign in to comment.