fix: Handle unknown versions (#10657)

This commit is contained in:
Jiralite
2024-12-12 19:09:05 +00:00
committed by GitHub
parent fd1958bd67
commit 0848fc6b4e

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();
}