2017-11-23 12:48:34 +00:00
|
|
|
import Document, { Head, Main, NextScript } from 'next/document'
|
|
|
|
|
|
|
|
class MyDocument extends Document {
|
2017-11-25 11:03:25 +00:00
|
|
|
static getInitialProps ({ renderPage }) {
|
2017-11-23 12:48:34 +00:00
|
|
|
const { html, head, errorHtml, chunks } = renderPage()
|
|
|
|
|
|
|
|
return { html, head, errorHtml, chunks }
|
|
|
|
}
|
|
|
|
|
2017-11-25 11:03:25 +00:00
|
|
|
render () {
|
2017-11-23 12:48:34 +00:00
|
|
|
return (
|
|
|
|
<html>
|
|
|
|
<Head>
|
2017-11-25 11:03:25 +00:00
|
|
|
<link rel='stylesheet' href='/static/css/bundle.css' />
|
2017-11-23 12:48:34 +00:00
|
|
|
</Head>
|
|
|
|
<body>
|
|
|
|
{this.props.customValue}
|
|
|
|
<Main />
|
|
|
|
<NextScript />
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-25 11:03:25 +00:00
|
|
|
export default MyDocument
|