Added custom image sizes

This commit is contained in:
Luis Alvarez
2020-09-30 15:59:46 -05:00
parent 63a7ebc71d
commit af38839384
5 changed files with 115 additions and 41 deletions

View File

@@ -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 },