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:
parent
cbfdcce32d
commit
4df7e48f94
|
@ -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 }' }} />
|
||||
|
|
Loading…
Reference in a new issue