diff --git a/routes/index.tsx b/routes/index.tsx index 08a423089..fd324b7ad 100644 --- a/routes/index.tsx +++ b/routes/index.tsx @@ -21,7 +21,7 @@ interface HomePageData extends State { export const handler: Handlers = { async GET(_req, ctx) { - const items = await getAllItems(); + const items = (await getAllItems()).slice(0, 10); const users = await getUsersByIds(items.map((item) => item.userId)); const commentsCounts = await Promise.all( items.map((item) => getItemCommentsCount(item.id)),