1
0
Fork 0
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:
Florian Hämmerle 2018-12-21 03:20:12 +01:00 committed by Tim Neutkens
parent 32451e979e
commit 401495bcd5

View file

@ -1138,7 +1138,7 @@ that need to wrap the application to properly work with server-rendering. 🚧
```js
import Document from 'next/document'
export default MyDocument extends Document {
export default class MyDocument extends Document {
static async getInitialProps(ctx) {
const originalRenderPage = ctx.renderPage