We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 066984e commit 789a665Copy full SHA for 789a665
examples/with-emotion-vanilla/pages/_document.js
@@ -3,9 +3,8 @@ import * as React from 'react'
3
import { renderStatic } from '../shared/renderer'
4
export default class AppDocument extends Document {
5
static async getInitialProps(ctx) {
6
- const page = await ctx.renderPage()
7
- const { css, ids } = await renderStatic(page.html)
8
const initialProps = await Document.getInitialProps(ctx)
+ const { css, ids } = await renderStatic(initialProps.html)
9
return {
10
...initialProps,
11
styles: (
0 commit comments