Unverified Commit 006eba32 authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

Add note for using `getStaticProps` with `404.js` (#22693)

Help clarify that this option is available!
parent 8dfe5a3b
...@@ -21,6 +21,8 @@ export default function Custom404() { ...@@ -21,6 +21,8 @@ export default function Custom404() {
} }
``` ```
> **Note**: You can use [`getStaticProps`](/docs/basic-features/data-fetching.md#getstaticprops-static-generation) inside this page if you need to fetch data at build time.
## 500 Page ## 500 Page
By default Next.js provides a 500 error page that matches the default 404 page’s style. This page is not statically optimized as it allows server-side errors to be reported. This is why 404 and 500 (other errors) are separated. By default Next.js provides a 500 error page that matches the default 404 page’s style. This page is not statically optimized as it allows server-side errors to be reported. This is why 404 and 500 (other errors) are separated.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment