From 0681ac9c86b5309e34d626dc8226753a1ec9533f Mon Sep 17 00:00:00 2001 From: Clemence Kyara Date: Fri, 23 Aug 2024 09:53:39 +0300 Subject: [PATCH] Specify favicons in _document --- .../src/pages/_document.page.js | 3 +- apps/roboshield/src/pages/_document.tsx | 40 ++++++++++++++----- 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/apps/civicsignalblog/src/pages/_document.page.js b/apps/civicsignalblog/src/pages/_document.page.js index 12951988f..c696819af 100644 --- a/apps/civicsignalblog/src/pages/_document.page.js +++ b/apps/civicsignalblog/src/pages/_document.page.js @@ -2,6 +2,7 @@ import createEmotionServer from "@emotion/server/create-instance"; import Document, { Html, Head, Main, NextScript } from "next/document"; import React from "react"; +import theme from "@/civicsignalblog/theme"; import createEmotionCache from "@/civicsignalblog/utils/createEmotionCache"; class MyDocument extends Document { @@ -44,7 +45,7 @@ class MyDocument extends Document { - + {this.props.emotionStyleTags} diff --git a/apps/roboshield/src/pages/_document.tsx b/apps/roboshield/src/pages/_document.tsx index 6bb40277d..a30ef2f18 100644 --- a/apps/roboshield/src/pages/_document.tsx +++ b/apps/roboshield/src/pages/_document.tsx @@ -1,17 +1,18 @@ -import * as React from "react"; -import { - Html, - Head, - Main, - NextScript, - DocumentProps, - DocumentContext, -} from "next/document"; import { DocumentHeadTags, DocumentHeadTagsProps, documentGetInitialProps, } from "@mui/material-nextjs/v14-pagesRouter"; +import { + DocumentContext, + DocumentProps, + Head, + Html, + Main, + NextScript, +} from "next/document"; + +import theme from "@/roboshield/theme"; export default function MyDocument( props: DocumentProps & DocumentHeadTagsProps, @@ -19,6 +20,27 @@ export default function MyDocument( return ( + + + + + + +