Skip to content

Commit 58991a0

Browse files
fix: skip attempting to render archived pages to prevent 404 errors
1 parent 28677fc commit 58991a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/DatabasePageRenderer.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ export class DatabasePageRenderer {
4444
const context = new RenderingLoggingContext(page.url, file);
4545

4646
if (page.archived) {
47-
context.warn(`page is arvhied`);
47+
// have to skip rendering archived pages as attempting to retrieve the block will result in a HTTP 404
48+
context.warn(`page is archived - skipping`);
49+
50+
return;
4851
}
4952

5053
try {

0 commit comments

Comments
 (0)