Add preview where applicable

This commit is contained in:
Luis Alvarez
2020-10-27 00:47:29 -05:00
parent 3e7b1f833f
commit c9b4a9ad4c
14 changed files with 57 additions and 41 deletions

View File

@@ -18,8 +18,8 @@ import {
} from '@utils/search'
export async function getStaticProps({ preview }: GetStaticPropsContext) {
const { pages } = await getAllPages()
const { categories, brands } = await getSiteInfo()
const { pages } = await getAllPages({ preview })
const { categories, brands } = await getSiteInfo({ preview })
return {
props: { pages, categories, brands },