From b36771cd573f3a0805eee97d8e2bffb079915bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Vanvelthem?= Date: Sun, 17 Oct 2021 01:16:19 +0200 Subject: [PATCH] feat(web-app): example of favicons --- .changeset/khaki-crabs-boil.md | 5 ++++ apps/web-app/src/pages/_app.tsx | 4 ++++ apps/web-app/src/pages/_document.tsx | 34 +++++++++++++++++++++++++++- 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .changeset/khaki-crabs-boil.md diff --git a/.changeset/khaki-crabs-boil.md b/.changeset/khaki-crabs-boil.md new file mode 100644 index 00000000000..7a90d771a6b --- /dev/null +++ b/.changeset/khaki-crabs-boil.md @@ -0,0 +1,5 @@ +--- +'web-app': minor +--- + +Example of favicons diff --git a/apps/web-app/src/pages/_app.tsx b/apps/web-app/src/pages/_app.tsx index 6d3b643354f..98464e64fa4 100644 --- a/apps/web-app/src/pages/_app.tsx +++ b/apps/web-app/src/pages/_app.tsx @@ -1,6 +1,7 @@ import type { EmotionCache } from '@emotion/react'; import { appWithTranslation } from 'next-i18next'; import type { AppProps as NextAppProps } from 'next/app'; +import Head from 'next/head'; import { AppProviders } from '../app-providers'; /** @@ -32,6 +33,9 @@ const MyApp = (appProps: AppProps) => { const { Component, pageProps, emotionCache, err } = appProps; return ( + + + {/* Workaround for https://github.com/vercel/next.js/issues/8592 */} diff --git a/apps/web-app/src/pages/_document.tsx b/apps/web-app/src/pages/_document.tsx index f9685a893bb..1a9321a3cb3 100644 --- a/apps/web-app/src/pages/_document.tsx +++ b/apps/web-app/src/pages/_document.tsx @@ -65,7 +65,39 @@ class MyDocument extends Document { render() { return ( - + + + + + + + + + + + +