mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-11-18 17:47: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> {
|
export async function getAllIcons(): Promise<IconFile> {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(METADATA_URL, {
|
const response = await fetch(METADATA_URL)
|
||||||
next: { revalidate: 3600 },
|
|
||||||
})
|
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new ApiError(`Failed to fetch icons: ${response.statusText}`, response.status)
|
throw new ApiError(`Failed to fetch icons: ${response.statusText}`, response.status)
|
||||||
|
|||||||
Reference in New Issue
Block a user