rsnext/errors/custom-error-no-custom-404.mdx
Delba de Oliveira 44d1a1cb15
docs: Migrate error messages to MDX and App Router. (#52038)
This PR is part of a larger effort to migrate error messages to MDX and
use App Router: https://github.com/vercel/front/pull/23459
2023-07-05 06:11:16 -07:00

16 lines
582 B
Text

---
title: 'Custom `_error` without /404'
---
## Why This Error Occurred
You added a custom `/_error` page without adding a custom `/404` page. Adding a custom `/_error` typically opts your application out of having the automatic static optimization applied to the 404 page.
## Possible Ways to Fix It
Add a `pages/404.js` with the 404 page you would like to show.
## Useful Links
- [Automatic Static Optimization](/docs/pages/building-your-application/rendering/automatic-static-optimization)
- [404 Page](/docs/pages/building-your-application/routing/custom-error#404-page)