Skip to content

Commit

Permalink
fix: og images maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhooks committed May 8, 2024
1 parent cc922bf commit 5bf09ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Expand Up @@ -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,
Expand Down Expand Up @@ -57,8 +61,7 @@ export default async function ArticleOG({
</div>
),
{
width: 1200,
height: 630,
...size,
},
)
}
Expand Down
Expand Up @@ -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({
Expand Down Expand Up @@ -36,8 +40,7 @@ export default async function TipOG({ params }: { params: { slug: string } }) {
</div>
),
{
width: 1200,
height: 630,
...size,
},
)
}
Expand Down

0 comments on commit 5bf09ea

Please sign in to comment.