feat: render home page via api to reduce js size

This commit is contained in:
DIYgod
2022-11-17 20:22:34 +00:00
parent cd41e61363
commit cd2fdaf3da
10 changed files with 25 additions and 19 deletions
@@ -70,7 +70,6 @@ export const PagesManager: React.FC<{
site: subdomain!,
take: 100,
visibility,
render: true,
})
const tabItems: TabItem[] = [
@@ -59,7 +59,6 @@ export const getServerSideProps = async (
...(options?.take && { take: options.take }),
type: "post",
visibility: PageVisibilityEnum.Published,
render: true,
...(tag && { tags: [tag] }),
},
queryClient,