diff --git a/apps/website/src/util/fetchNode.ts b/apps/website/src/util/fetchNode.ts index d2d4da5c8..6ff84150f 100644 --- a/apps/website/src/util/fetchNode.ts +++ b/apps/website/src/util/fetchNode.ts @@ -31,5 +31,9 @@ export async function fetchNode({ { next: isMainVersion ? { revalidate: 0 } : { revalidate: 604_800 } }, ); + if (!fileContent.ok) { + return null; + } + return fileContent.json(); }