1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Add title to default error page (#4383)

This commit is contained in:
Shu Ding 2018-05-25 19:35:59 +08:00 committed by Tim Neutkens
parent cbfdcce32d
commit 4df7e48f94

View file

@ -22,6 +22,7 @@ export default class Error extends React.Component {
return <div style={styles.error}>
<Head>
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
<title>{statusCode}: {title}</title>
</Head>
<div>
<style dangerouslySetInnerHTML={{ __html: 'body { margin: 0 }' }} />