fix: Handle unknown versions (#10657)

This commit is contained in:
Jiralite
2024-12-12 20:09:05 +01:00
committed by GitHub
parent fd1958bd67
commit 0848fc6b4e
+4
View File
@@ -24,5 +24,9 @@ export async function fetchSitemap({
{ next: isMainVersion ? { revalidate: 0 } : { revalidate: 604_800 } },
);
if (!fileContent.ok) {
return null;
}
return fileContent.json();
}