This commit is contained in:
Luis Alvarez 2020-10-02 17:59:26 -05:00
parent 4f72e371cd
commit 667f36c101
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import { GetStaticPropsContext, InferGetStaticPropsType } from 'next'
import getAllProducts from '@lib/bigcommerce/api/operations/get-all-products'
import getAllProducts from 'lib/bigcommerce/api/operations/get-all-products'
import { Layout } from '@components/core'
import { ProductGrid } from '@components/product'

View File

@ -3,7 +3,7 @@ import { useRouter } from 'next/router'
import getProduct from 'lib/bigcommerce/api/operations/get-product'
import { Layout } from '@components/core'
import { ProductView } from '@components/product'
import getAllProductPaths from '@lib/bigcommerce/api/operations/get-all-product-paths'
import getAllProductPaths from 'lib/bigcommerce/api/operations/get-all-product-paths'
export async function getStaticProps({
params,
@ -42,7 +42,7 @@ export async function getStaticPaths() {
// Exclude the slashes: `/slug/` -> `slug`
return { params: { slug: path.substring(1, path.length - 1) } }
}),
fallback: 'unstable_blocking',
fallback: false,
}
}