diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 7dffec2..fcb8ef2 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -1,5 +1,6 @@ import { Component } from 'react'; import { NextPage } from 'next'; +import Script from 'next/script'; import type { AppProps } from 'next/app'; @@ -14,7 +15,34 @@ function MyApp({ Component, pageProps }: AppProps) { ).getLayout || ((page: JSX.Element) => <>{page}); // @ts-ignore - return getLayout(); + return getLayout( + <> + {/* eslint-disable-next-line @next/next/inline-script-id */} + + {/* eslint-disable-next-line @next/next/inline-script-id */} + + + + ); } // noinspection JSUnusedGlobalSymbols diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 17e7301..f2e89a1 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -1,41 +1,11 @@ import { Html, Head, Main, NextScript } from 'next/document'; import React from 'react'; -// eslint-disable-next-line @next/next/no-script-in-document -import Script from 'next/script'; // noinspection JSUnusedGlobalSymbols export default function Document() { return ( - - {/* eslint-disable-next-line @next/next/inline-script-id */} - {/* eslint-disable-next-line @next/next/no-title-in-document-head */} Blockchain, IT, Web3 Development Company | Blockchain Software