From 6e4ba086a78defd3586023361015683d0d15979d Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Fri, 7 Nov 2025 08:35:28 +0100 Subject: [PATCH] refactor: remove fetch revalidation from getAllIcons to rely on static generation - Removed `next: { revalidate: 3600 }` from fetch call - This allows static generation to control caching instead of fetch-level revalidation --- web/src/lib/api.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/src/lib/api.ts b/web/src/lib/api.ts index 4bd93c15..6eebc5f0 100644 --- a/web/src/lib/api.ts +++ b/web/src/lib/api.ts @@ -9,9 +9,7 @@ import type { AuthorData, IconFile, IconWithName } from "@/types/icons" */ export async function getAllIcons(): Promise { try { - const response = await fetch(METADATA_URL, { - next: { revalidate: 3600 }, - }) + const response = await fetch(METADATA_URL) if (!response.ok) { throw new ApiError(`Failed to fetch icons: ${response.statusText}`, response.status)