mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Added custom image sizes
This commit is contained in:
@@ -3,7 +3,7 @@ import { commerce } from 'lib/commerce-api';
|
||||
import { Layout } from '@components/core';
|
||||
|
||||
export async function getStaticProps({ preview }: GetStaticPropsContext) {
|
||||
const products = await commerce.getAllProducts();
|
||||
const { products } = await commerce.getAllProducts();
|
||||
|
||||
return {
|
||||
props: { products },
|
||||
|
Reference in New Issue
Block a user