mirror of
https://github.com/vercel/commerce.git
synced 2025-03-15 06:52:32 +00:00
test fix
This commit is contained in:
parent
4f72e371cd
commit
667f36c101
@ -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'
|
||||
|
||||
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user