mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Converts to Opengraph Image file convention. (#1043)
This commit is contained in:
@@ -20,16 +20,7 @@ export async function generateMetadata({
|
||||
return {
|
||||
title: collection.seo?.title || collection.title,
|
||||
description:
|
||||
collection.seo?.description || collection.description || `${collection.title} products`,
|
||||
openGraph: {
|
||||
images: [
|
||||
{
|
||||
url: `/api/og?title=${encodeURIComponent(collection.title)}`,
|
||||
width: 1200,
|
||||
height: 630
|
||||
}
|
||||
]
|
||||
}
|
||||
collection.seo?.description || collection.description || `${collection.title} products`
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user