forked from crowetic/commerce
test fix
This commit is contained in:
parent
4f72e371cd
commit
667f36c101
@ -1,5 +1,5 @@
|
|||||||
import { GetStaticPropsContext, InferGetStaticPropsType } from 'next'
|
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 { Layout } from '@components/core'
|
||||||
import { ProductGrid } from '@components/product'
|
import { ProductGrid } from '@components/product'
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import { useRouter } from 'next/router'
|
|||||||
import getProduct from 'lib/bigcommerce/api/operations/get-product'
|
import getProduct from 'lib/bigcommerce/api/operations/get-product'
|
||||||
import { Layout } from '@components/core'
|
import { Layout } from '@components/core'
|
||||||
import { ProductView } from '@components/product'
|
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({
|
export async function getStaticProps({
|
||||||
params,
|
params,
|
||||||
@ -42,7 +42,7 @@ export async function getStaticPaths() {
|
|||||||
// Exclude the slashes: `/slug/` -> `slug`
|
// Exclude the slashes: `/slug/` -> `slug`
|
||||||
return { params: { slug: path.substring(1, path.length - 1) } }
|
return { params: { slug: path.substring(1, path.length - 1) } }
|
||||||
}),
|
}),
|
||||||
fallback: 'unstable_blocking',
|
fallback: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user