diff --git a/packages/next/README.md b/packages/next/README.md index d28ef38b..9b13ded4 100644 --- a/packages/next/README.md +++ b/packages/next/README.md @@ -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