diff --git a/.env.production b/.env.production index 23a31e3..28b3c72 100644 --- a/.env.production +++ b/.env.production @@ -2,3 +2,7 @@ NEXT_PUBLIC_COLOR_PRIMARY=#1C01A9 NEXT_PUBLIC_COLOR_SECONDARY=#3A0185 NEXT_PUBLIC_COLOR_TERTIARTY=#580161 + + +####### ICONS ######## +NEXT_PUBLIC_FAVICON=favicon.prod.ico \ No newline at end of file diff --git a/pages/_document.jsx b/pages/_document.jsx index 97ad5a3..3e92df8 100644 --- a/pages/_document.jsx +++ b/pages/_document.jsx @@ -7,11 +7,13 @@ export default class MyDocument extends Document { const originalRenderPage = ctx.renderPage; try { - ctx.renderPage = () => originalRenderPage({ + ctx.renderPage = () => + originalRenderPage({ enhanceApp: (App) => (props) => sheet.collectStyles(), }); const initialProps = await Document.getInitialProps(ctx); + return { ...initialProps, styles: ( @@ -46,7 +48,7 @@ export default class MyDocument extends Document {