Unverified Commit e2a98cdf authored by Balázs Orbán's avatar Balázs Orbán Committed by GitHub

chore(examples): fix `with-aphrodite` exapmle (#42078)

parent d07ae348
...@@ -5,7 +5,7 @@ class MyDocument extends Document { ...@@ -5,7 +5,7 @@ class MyDocument extends Document {
static async getInitialProps({ renderPage }) { static async getInitialProps({ renderPage }) {
const { html, css } = StyleSheetServer.renderStatic(() => renderPage()) const { html, css } = StyleSheetServer.renderStatic(() => renderPage())
const ids = css.renderedClassNames const ids = css.renderedClassNames
return { ...html, css, ids } return { ...(await html), css, ids }
} }
render() { render() {
......
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