mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
fix: Handle unknown versions (#10657)
This commit is contained in:
@@ -24,5 +24,9 @@ export async function fetchSitemap({
|
|||||||
{ next: isMainVersion ? { revalidate: 0 } : { revalidate: 604_800 } },
|
{ next: isMainVersion ? { revalidate: 0 } : { revalidate: 604_800 } },
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (!fileContent.ok) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return fileContent.json();
|
return fileContent.json();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user