mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
fix custom document example (#5928)
This commit is contained in:
parent
32451e979e
commit
401495bcd5
|
@ -1138,7 +1138,7 @@ that need to wrap the application to properly work with server-rendering. 🚧
|
||||||
```js
|
```js
|
||||||
import Document from 'next/document'
|
import Document from 'next/document'
|
||||||
|
|
||||||
export default MyDocument extends Document {
|
export default class MyDocument extends Document {
|
||||||
static async getInitialProps(ctx) {
|
static async getInitialProps(ctx) {
|
||||||
const originalRenderPage = ctx.renderPage
|
const originalRenderPage = ctx.renderPage
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue