51e0752f87
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.
5 lines
114 B
JavaScript
5 lines
114 B
JavaScript
const page = () => 'page with err'
|
|
page.getInitialProps = () => {
|
|
throw new Error('oops')
|
|
}
|
|
export default page
|