diff --git a/pages/index.tsx b/pages/index.tsx index ccc3f334..d8f4073a 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -59,7 +59,7 @@ export const unstable_getStaticProps = async () => { const url = `/api/pages/tags?${tagQuery}&skip=${skip}&limit=${limit}&sortBy=-date` const res = await requestGet>(createApiUrl(url), null) - const articles = (res.items || []) + const items = (res.items || []) // const nextPage = res.nextPage const nextPage = 2 const prevPage = res.prevPage @@ -73,7 +73,7 @@ export const unstable_getStaticProps = async () => { return { props: { - articles, + items, nextPage, prevPage, title,