From 03a0ffc1cab00b0cf7ef0ad5b6df120f648713f1 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 20 Nov 2022 23:36:04 +0100 Subject: [PATCH] fix(frontend): fix duplicate meta elements --- frontend/pages/_app.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/pages/_app.tsx b/frontend/pages/_app.tsx index e972de1..fb70534 100755 --- a/frontend/pages/_app.tsx +++ b/frontend/pages/_app.tsx @@ -6,6 +6,9 @@ import { RecoilRoot } from "recoil"; import Head from "next/head"; function MyApp({ Component, pageProps }: AppProps) { + const domain = + typeof window !== "undefined" ? window.location.origin : process.env.DOMAIN; + return ( @@ -13,14 +16,14 @@ function MyApp({ Component, pageProps }: AppProps) { - - + + - +