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
This commit is contained in:
Thomas Camlong
2025-11-07 08:35:28 +01:00
parent 2af3aa13ef
commit 6e4ba086a7

View File

@@ -9,9 +9,7 @@ import type { AuthorData, IconFile, IconWithName } from "@/types/icons"
*/
export async function getAllIcons(): Promise<IconFile> {
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)