Skip to content

Commit d22b55f

Browse files
committed
fix: restore 404 page
1 parent a468ae8 commit d22b55f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/website/src/util/fetchNode.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,9 @@ export async function fetchNode({
3131
{ next: isMainVersion ? { revalidate: 0 } : { revalidate: 604_800 } },
3232
);
3333

34+
if (!fileContent.ok) {
35+
return null;
36+
}
37+
3438
return fileContent.json();
3539
}

0 commit comments

Comments
 (0)