mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
sp
This commit is contained in:
parent
a8bd1f6221
commit
30b1cfaeda
1 changed files with 8 additions and 8 deletions
|
|
@ -32,11 +32,11 @@ export async function getStaticProps(context) {
|
|||
}
|
||||
}
|
||||
|
||||
export async function getStaticPaths(_context) {
|
||||
const projectCount = await onboardProjectCount()
|
||||
const pages = Math.min(5, Math.ceil(projectCount / 10))
|
||||
const paths = Array(pages)
|
||||
.fill()
|
||||
.map((_, i) => ({ params: { page: (i + 1).toString() } }))
|
||||
return { paths, fallback: 'blocking' }
|
||||
}
|
||||
// export async function getStaticPaths(_context) {
|
||||
// const projectCount = await onboardProjectCount()
|
||||
// const pages = Math.min(5, Math.ceil(projectCount / 10))
|
||||
// const paths = Array(pages)
|
||||
// .fill()
|
||||
// .map((_, i) => ({ params: { page: (i + 1).toString() } }))
|
||||
// return { paths, fallback: 'blocking' }
|
||||
// }
|
||||
Loading…
Add table
Reference in a new issue