Skip to content

Commit

Permalink
fix: restore 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed May 26, 2024
1 parent a468ae8 commit d22b55f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/website/src/util/fetchNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,9 @@ export async function fetchNode({
{ next: isMainVersion ? { revalidate: 0 } : { revalidate: 604_800 } },
);

if (!fileContent.ok) {
return null;
}

return fileContent.json();
}

0 comments on commit d22b55f

Please sign in to comment.