From 5bf09ea5ad304c880bc30cefefca76d9fd3e87e7 Mon Sep 17 00:00:00 2001 From: joel Date: Wed, 8 May 2024 09:07:44 -0700 Subject: [PATCH] fix: og images maybe --- .../src/app/(content)/articles/[slug]/opengraph-image.tsx | 7 +++++-- .../src/app/(content)/tips/[slug]/opengraph-image.tsx | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/course-builder-web/src/app/(content)/articles/[slug]/opengraph-image.tsx b/apps/course-builder-web/src/app/(content)/articles/[slug]/opengraph-image.tsx index 4fca9152..0bf98e90 100644 --- a/apps/course-builder-web/src/app/(content)/articles/[slug]/opengraph-image.tsx +++ b/apps/course-builder-web/src/app/(content)/articles/[slug]/opengraph-image.tsx @@ -7,6 +7,10 @@ export const runtime = 'edge' export const revalidate = 60 export const contentType = 'image/png' +export const size = { + width: 1200, + height: 630, +} export default async function ArticleOG({ params, @@ -57,8 +61,7 @@ export default async function ArticleOG({ ), { - width: 1200, - height: 630, + ...size, }, ) } diff --git a/apps/course-builder-web/src/app/(content)/tips/[slug]/opengraph-image.tsx b/apps/course-builder-web/src/app/(content)/tips/[slug]/opengraph-image.tsx index 0d2edf89..d9721434 100644 --- a/apps/course-builder-web/src/app/(content)/tips/[slug]/opengraph-image.tsx +++ b/apps/course-builder-web/src/app/(content)/tips/[slug]/opengraph-image.tsx @@ -7,6 +7,10 @@ export const runtime = 'edge' export const revalidate = 60 export const contentType = 'image/png' +export const size = { + width: 1200, + height: 630, +} export default async function TipOG({ params }: { params: { slug: string } }) { const resource = await db.query.contentResource.findFirst({ @@ -36,8 +40,7 @@ export default async function TipOG({ params }: { params: { slug: string } }) { ), { - width: 1200, - height: 630, + ...size, }, ) }