BUG: 404 page shows bare 'Not Found' with no site chrome #54

Closed
opened 2026-06-09 21:35:05 +00:00 by glow · 1 comment
Owner

When visiting an article page that wasn't built (see SSG crash bug), or any genuinely missing URL, the user sees plain "Not Found" text on a white page with:

  • No site header/navigation
  • No footer
  • No "back to home" link
  • No search suggestion
  • No styling whatsoever

This is a dead-end for the user.

Location

Preview server at `scripts/preview-serve.ts` lines 92-104 — returns raw text for 404.

Expected

Full site layout (header + footer) with friendly message, search box, and links to popular articles.

When visiting an article page that wasn't built (see SSG crash bug), or any genuinely missing URL, the user sees plain "Not Found" text on a white page with: - No site header/navigation - No footer - No "back to home" link - No search suggestion - No styling whatsoever This is a dead-end for the user. ## Location Preview server at \`scripts/preview-serve.ts\` lines 92-104 — returns raw text for 404. ## Expected Full site layout (header + footer) with friendly message, search box, and links to popular articles.
glow closed this issue 2026-06-09 21:38:28 +00:00
Author
Owner

Fixed in 589b790. The 404 fallback now returns a styled HTML page with a heading, description, link to /, and search hint — instead of bare plain text. Keeps the try for dist/404.html first.

Fixed in 589b790. The 404 fallback now returns a styled HTML page with a heading, description, link to /, and search hint — instead of bare plain text. Keeps the try for dist/404.html first.
Sign in to join this conversation.
No labels
bug
feature
improvement
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
glow/first-home-diy#54
No description provided.