Commit 401495bc authored by Florian Hämmerle's avatar Florian Hämmerle Committed by Tim Neutkens

fix custom document example (#5928)

parent 32451e97
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment