diff --git a/src/app/blog/post/[slug]/page.tsx b/src/app/blog/post/[slug]/page.tsx index 57fecd0b..b51164d7 100644 --- a/src/app/blog/post/[slug]/page.tsx +++ b/src/app/blog/post/[slug]/page.tsx @@ -7,7 +7,6 @@ import { useMDXComponent } from 'next-contentlayer/hooks' import { allPosts, type Post } from 'contentlayer/generated' import { slug } from '@/shared/lib/slug' -import { config } from 'global-config' import { Folder, CalendarBlank, @@ -41,9 +40,9 @@ export function generateMetadata({ params }: Props): Metadata { tags: post.tags.split(',').map(tag => tag.trim()), authors: 'Mateus Felipe Gonçalves ', type: 'article', - url: `https://mateusf.com/blog/post/${params.slug}`, + url: `/blog/post/${params.slug}`, images: { - url: `${config.webserver.host}/blog/post/${post.id}/thumbnail`, + url: `/blog/post/${post.id}/thumbnail`, width: 1200, height: 630 } @@ -53,9 +52,9 @@ export function generateMetadata({ params }: Props): Metadata { title: post.title, description: post.description, creator: 'Mateus Felipe Gonçalves ', - site: `${config.webserver.host}`, + site: '/', images: { - url: `${config.webserver.host}/blog/post/${post.id}/thumbnail`, + url: `/blog/post/${post.id}/thumbnail`, width: 1200, height: 630 } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 301d28c6..d2f554f0 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -11,6 +11,7 @@ import '@/styles/main.css' export const metadata: Metadata = { ...config.metadata, + metadataBase: new URL(config.webserver.host), title: { default: config.metadata.title, template: `%s | ${config.metadata.title}` @@ -38,7 +39,7 @@ export const metadata: Metadata = { openGraph: { ...config.metadata, type: 'website', - url: config.webserver.host, + url: '/', emails: [ 'contact@mateusf.com', 'contato@mateusf.com',