diff --git a/next.config.js b/next.config.js index 22c4561..816111b 100644 --- a/next.config.js +++ b/next.config.js @@ -64,10 +64,6 @@ const config = { config.output.webassemblyModuleFilename = "static/wasm/[modulehash].wasm"; return config; - }, - target: "serverless", - experimental: { - jsConfig: true } }; diff --git a/package.json b/package.json index 371901e..de70066 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,6 @@ "react": "^16.13.1", "react-dom": "^16.13.1", "react-dropzone": "^11.0.1", - "react-ga": "^3.0.0", "rust-keywords": "^1.1.0", "sha1": "^1.1.1", "snack-sdk": "^2.6.3", diff --git a/pages/_app.tsx b/pages/_app.tsx index 665c1c0..bdfcb63 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -7,12 +7,7 @@ import "@styles/main.css"; import NProgress from "nprogress"; import Router from "next/router"; import { activeRouteData } from "@utils/routes"; - -let reactGa; -if (IN_BROWSER && !IS_DEV) { - reactGa = require("react-ga"); - reactGa.initialize("UA-60624235-8"); -} +import Head from "next/head"; const logo = ( { - reactGa && reactGa.pageview(pathname); + private stopProgress = () => { clearTimeout(this.timer); NProgress.done(); }; @@ -75,7 +69,6 @@ export default class extends App { }; componentDidMount(): void { - reactGa && reactGa.pageview(Router.pathname); Router.events.on("routeChangeStart", this.showProgressBar); } @@ -97,11 +90,14 @@ export default class extends App { return ( <> - - {activeRoute && (activeRoute.title || activeRoute.searchTerm)} - - - + + + {activeRoute && (activeRoute.title || activeRoute.searchTerm)} + + + +