Skip to content

Commit

Permalink
fix(nextjs): add displayName to CustomDocument component when using s…
Browse files Browse the repository at this point in the history
…tyled-components
  • Loading branch information
jaysoo authored and Jack Hsu committed Aug 31, 2021
1 parent 0a6434d commit 73afbea
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -3,6 +3,8 @@ import Document, { Html, Head, Main, NextScript } from 'next/document';
import { ServerStyleSheet } from 'styled-components';

export default class CustomDocument extends Document<{ styleTags: ReactElement[] }> {
static displayName = 'CustomDocument';

static getInitialProps({ renderPage }) {
const sheet = new ServerStyleSheet();

Expand Down

0 comments on commit 73afbea

Please sign in to comment.