From 573df18723c040b9e598a68bd24fccca16a20952 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 10 Feb 2024 02:36:32 +0800 Subject: [PATCH] :poop: Increase fetch limit --- src/pages/categories/[slug].astro | 2 +- src/pages/posts/index.astro | 2 +- src/pages/tags/[slug].astro | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/categories/[slug].astro b/src/pages/categories/[slug].astro index f5b4d17..c8ab917 100644 --- a/src/pages/categories/[slug].astro +++ b/src/pages/categories/[slug].astro @@ -11,7 +11,7 @@ const { slug } = Astro.params; const response = await fetch( `https://feed.smartsheep.studio/api/posts?${new URLSearchParams({ offset: (0).toString(), - take: (10).toString(), + take: (100).toString(), category: slug ?? "none", realmId: process.env.PUBLIC_REALM_ID ?? (0).toString(), })}`, diff --git a/src/pages/posts/index.astro b/src/pages/posts/index.astro index 287a0f9..640e334 100644 --- a/src/pages/posts/index.astro +++ b/src/pages/posts/index.astro @@ -7,7 +7,7 @@ export const prerender = false; const response = await fetch( `https://feed.smartsheep.studio/api/posts?${new URLSearchParams({ offset: (0).toString(), - take: (10).toString(), + take: (100).toString(), realmId: process.env.PUBLIC_REALM_ID ?? (0).toString(), })}`, ); diff --git a/src/pages/tags/[slug].astro b/src/pages/tags/[slug].astro index d04885d..031d1f9 100644 --- a/src/pages/tags/[slug].astro +++ b/src/pages/tags/[slug].astro @@ -11,7 +11,7 @@ const { slug } = Astro.params; const response = await fetch( `https://feed.smartsheep.studio/api/posts?${new URLSearchParams({ offset: (0).toString(), - take: (10).toString(), + take: (100).toString(), tag: slug ?? "none", realmId: process.env.PUBLIC_REALM_ID ?? (0).toString(), })}`,