mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Add missing variables (#2905)
This commit is contained in:
parent
32c3dd0476
commit
6e88780419
|
@ -3,8 +3,8 @@ import Document, { Head, Main, NextScript } from 'next/document'
|
|||
|
||||
export default class MyDocument extends Document {
|
||||
static getInitialProps ({ renderPage }) {
|
||||
const {html, head} = renderPage()
|
||||
return { html, head }
|
||||
const { html, head, errorHtml, chunks } = renderPage()
|
||||
return { html, head, errorHtml, chunks }
|
||||
}
|
||||
|
||||
render () {
|
||||
|
|
Loading…
Reference in a new issue