mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 15:36:58 +00:00
fix: type errors
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
parent
438e1ac20f
commit
3d4dc9ec86
@ -26,7 +26,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||
}))
|
||||
);
|
||||
|
||||
const productsPromise = getProducts({}).then((products) =>
|
||||
const productsPromise = getProducts({}).then(({ products }) =>
|
||||
products.map((product) => ({
|
||||
url: `${baseUrl}/product/${product.handle}`,
|
||||
lastModified: product.updatedAt
|
||||
|
Loading…
x
Reference in New Issue
Block a user