Skip to content

Improvement: Docs site should ship a real HTTP 404 artifact like marketing web #2620

Closed

Description

@yannickmonney

Problem

services/web now prerenders /404 and the shared static server (packages/ui/src/server/index.ts) serves dist/404/index.html with status 404 when that artifact exists. services/docs does not yet ship the same artifact, so unknown docs URLs can still fall through to a soft-200 home shell depending on deploy path.

Current behaviour

  • Web: scripts/prerender.ts emits /404; container probes assert /nope → 404.
  • Docs: no equivalent prerendered 404 page / registry wiring; parity with web is unfinished.

Proposed change

Mirror the web pattern in services/docs:

  1. Localized notFound page + notFoundComponent on the docs root route.
  2. Prerender /404 (EN; client re-localizes if needed).
  3. Rely on the existing shared-server opt-in (dist/404/index.html → HTTP 404).
  4. Add a docs container probe for an unknown path → 404.

Acceptance criteria

  • services/docs build produces dist/404/index.html with noindex.
  • Unknown docs paths return HTTP 404 (not 200 + home shell) in the docs container test.
  • Localized copy for the not-found page ships in en/de/fr.

Context

Follow-up called out in the Tale website revamp master plan (Phase 2a). Web side landed on feat/web-revamp-foundations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsimprovementpriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions