Removed old getConfig and references

This commit is contained in:
Luis Alvarez
2021-05-24 19:01:27 -05:00
parent a106629964
commit ee3e4143b9
19 changed files with 51 additions and 247 deletions

View File

@@ -5,14 +5,11 @@ import { ProductCard } from '@components/product'
// import HomeAllProductsGrid from '@components/common/HomeAllProductsGrid'
import type { GetStaticPropsContext, InferGetStaticPropsType } from 'next'
import { getConfig } from '@framework/api'
export async function getStaticProps({
preview,
locale,
}: GetStaticPropsContext) {
const config = getConfig({ locale })
const config = { locale }
const { products } = await commerce.getAllProducts({
variables: { first: 12 },
config,