rsnext/errors/custom-error-no-custom-404.md
JJ Kasper 1cdc607968
Warn when user has pages/_error but no pages/404 (#11603)
* Warn when user has pages/_error but no pages/404

* Update test

* Update custom-error-no-custom-404.md

* Apply suggestions from code review

Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>

Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-04-05 13:19:14 +02:00

567 B

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.