Skip to content

Commit

Permalink
update typescipt example
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Apr 28, 2020
1 parent db7a0b9 commit d5453b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/nextjs-with-typescript/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export default class MyDocument extends Document {
}
}

// `getInitialProps` belongs to `_document` (instead of `_app`),
// it's compatible with server-side generation (SSG).
MyDocument.getInitialProps = async (ctx) => {
// Resolution order
//
Expand Down

0 comments on commit d5453b2

Please sign in to comment.