Skip to content

Not found

A not-found file answers every unmatched path in its folder and below.

A not-found.mdx file answers every unmatched path in its folder and below, with status 404.

  • sites/www/
  • not-found.mdxevery unmatched path
  • blog/not-found.mdxunmatched paths under /blog

Reference

MDX, like a Page, with no frontmatter keys of its own. The nearest file up the tree answers.

Examples

Minimal

sites/www/not-found.mdx
That page does not exist.

Leaseline

sites/www/not-found.mdx
That page moved or never existed.

<CallToAction heading="See pricing" action="/pricing" />

What it builds

The SiteBuilder compiles it into the 404 Page for its subtree.

  • a Page of kind not-found, served with status 404 and its Markdown twin
  • a Metric count of misses by path, so a broken link shows on the Site's Dashboard

Good to know

  • Every Site has a generated one until a file overrides it.