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

@@ -7,14 +7,13 @@ import { useRouter } from 'next/router'
import commerce from '@lib/api/commerce'
import { Layout } from '@components/common'
import { ProductView } from '@components/product'
import { getConfig } from '@framework/api'
export async function getStaticProps({
params,
locale,
preview,
}: GetStaticPropsContext<{ slug: string }>) {
const config = getConfig({ locale })
const config = { locale }
const { pages } = await commerce.getAllPages({ config, preview })
const { product } = await commerce.getProduct({
variables: { slug: params!.slug },