Skip to content

Commit

Permalink
Blocking rendering for products
Browse files Browse the repository at this point in the history
  • Loading branch information
okbel committed Nov 26, 2020
1 parent 9dbd606 commit b48a45b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pages/product/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ export async function getStaticPaths({ locales }: GetStaticPathsContext) {
return arr
}, [])
: products.map((product) => `/product${product.node.path}`),
// If your store has tons of products, enable fallback mode to improve build times!
fallback: false,
fallback: 'unstable_blocking',
}
}

Expand Down

0 comments on commit b48a45b

Please sign in to comment.