Progress with LocalProvider

This commit is contained in:
Bel Curcio
2021-06-10 10:51:42 -03:00
parent e752555e02
commit 9039a27f99
73 changed files with 24109 additions and 17 deletions

View File

@@ -12,6 +12,13 @@ export async function getStaticProps({
locale,
locales,
}: GetStaticPropsContext) {
// Disabling page if Feature is not available
if (!process.env.COMMERCE_CART_ENABLED) {
return {
notFound: true,
}
}
const config = { locale, locales }
const { pages } = await commerce.getAllPages({ config, preview })
const { categories } = await commerce.getSiteInfo({ config, preview })