mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-11-18 09:37:30 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user