0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-04 08:30:27 +03:00

Refactor Pagination component to update page size in getStaticPaths

This commit is contained in:
2024-09-13 00:26:08 +00:00
parent 4a821edd50
commit 5217bcb24c
4 changed files with 20 additions and 45 deletions

View File

@ -12,7 +12,7 @@ export const getStaticPaths = (async ({ paginate }) => {
posts.sort((a, b) => b.data.pubDate.getTime() - a.data.pubDate.getTime());
return paginate(posts, {
pageSize: 5,
pageSize: 10,
});
}) satisfies GetStaticPaths;