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
100 B
JavaScript
5 lines
100 B
JavaScript
const page = () => {
|
|
console.log('rendered 500')
|
|
return 'custom 500 page'
|
|
}
|
|
export default page
|