Selaa lähdekoodia

remove scripts

AykutSarac 3 vuotta sitten
vanhempi
commit
564ecb1c77
1 muutettua tiedostoa jossa 1 lisäystä ja 21 poistoa
  1. 1 21
      src/pages/_document.tsx

+ 1 - 21
src/pages/_document.tsx

@@ -8,8 +8,6 @@ import Document, {
 import { SeoTags } from "src/components/SeoTags";
 import { ServerStyleSheet } from "styled-components";
 
-const isDevelopment = process.env.NODE_ENV === "development";
-
 class MyDocument extends Document {
   static async getInitialProps(ctx: DocumentContext) {
     const sheet = new ServerStyleSheet();
@@ -41,24 +39,6 @@ class MyDocument extends Document {
     return (
       <Html lang="en">
         <Head>
-          {!isDevelopment && (
-            <>
-              <script
-                async
-                src="https://www.googletagmanager.com/gtag/js?id=G-JKZEHMJBMH"
-              />
-              <script
-                dangerouslySetInnerHTML={{
-                  __html: `window.dataLayer = window.dataLayer || [];
-                  function gtag(){dataLayer.push(arguments);}
-                  gtag('js', new Date());
-                
-                  gtag('config', 'G-JKZEHMJBMH');
-            `,
-                }}
-              />
-            </>
-          )}
           <SeoTags
             description="Simple visualization tool for your JSON data. No forced structure, paste your JSON and view it instantly."
             title="JSON Visio"
@@ -72,7 +52,7 @@ class MyDocument extends Document {
             crossOrigin="anonymous"
           />
           <link
-            href="https://fonts.googleapis.com/css2?family=Catamaran:wght@300;400;500;600;700&family=PT+Sans:wght@400;700&display=swap"
+            href="https://fonts.googleapis.com/css2?family=Catamaran:wght@300;400;500;600;700&family=PT+Sans:wght@400;500;700&display=swap"
             rel="stylesheet"
           />
         </Head>