page fix
This commit is contained in:
1 parent
970bdce53d
commit
6760f36177
1 file changed
+2
-2
+2
-2
@@ -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<IResponseItems<IPage>>(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,
|
||||
|
||||
Reference in new issue
Block a user