rsnext/test/integration/500-page/pages/err.js
JJ Kasper 51e0752f87
Add generating static 500 status page (#22139)
This adds generating a static 500 status page when a `pages/500.js` file is added similar to how we handle generating static 404 pages when `pages/404.js` is present. This allows showing a customized error page when a 500 error occurs in an optimal way.
2021-02-22 16:29:50 +00:00

5 lines
114 B
JavaScript

const page = () => 'page with err'
page.getInitialProps = () => {
throw new Error('oops')
}
export default page