fix: complete dynamic social image metadata
This commit is contained in:
1 parent
62bcfbd8fa
commit
4a4b41613a
3 files changed
+8
-3
No files matched your search
@@ -35,7 +35,7 @@ export default async function Image({
|
|||||||
id,
|
id,
|
||||||
}: {
|
}: {
|
||||||
params: Promise<{ slug: string }>;
|
params: Promise<{ slug: string }>;
|
||||||
id: Promise<string | number>;
|
id: Promise<string>;
|
||||||
}) {
|
}) {
|
||||||
const [{ slug }, imageId] = await Promise.all([params, id]);
|
const [{ slug }, imageId] = await Promise.all([params, id]);
|
||||||
const caseStudy = getCaseStudy(slug);
|
const caseStudy = getCaseStudy(slug);
|
||||||
|
|||||||
+6
-1
@@ -86,7 +86,12 @@ export const metadata: Metadata = {
|
|||||||
title: defaultTitle,
|
title: defaultTitle,
|
||||||
description: seoDescription,
|
description: seoDescription,
|
||||||
creator: "@evandrodevbr",
|
creator: "@evandrodevbr",
|
||||||
images: ["/opengraph-image"],
|
images: [
|
||||||
|
{
|
||||||
|
url: "/opengraph-image",
|
||||||
|
alt: "Evandro Fonseca Junior - Engenheiro da Computação e Desenvolvedor de Software",
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
robots: {
|
robots: {
|
||||||
index: true,
|
index: true,
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export default async function Image({
|
|||||||
id,
|
id,
|
||||||
}: {
|
}: {
|
||||||
params: Promise<{ slug: string }>;
|
params: Promise<{ slug: string }>;
|
||||||
id: Promise<string | number>;
|
id: Promise<string>;
|
||||||
}) {
|
}) {
|
||||||
const [{ slug }, imageId] = await Promise.all([params, id]);
|
const [{ slug }, imageId] = await Promise.all([params, id]);
|
||||||
const service = getServicePage(slug);
|
const service = getServicePage(slug);
|
||||||
|
|||||||
Reference in new issue
Block a user