diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index cc7e8c9f..b0690529 100644
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -2,9 +2,11 @@ import "../styles/globals.css";
import "@fortawesome/fontawesome-svg-core/styles.css";
import { ChakraProvider } from "@chakra-ui/react";
import { Analytics } from "@vercel/analytics/react";
+import { SpeedInsights } from "@vercel/speed-insights/react";
import dayjs from "dayjs";
import duration from "dayjs/plugin/duration";
import type { AppProps } from "next/app";
+import { useRouter } from "next/router";
import { NextSeo } from "next-seo";
import defaultSEOConfig from "../../next-seo.config";
@@ -15,6 +17,7 @@ import customTheme from "../styles/customTheme";
dayjs.extend(duration);
function StarknetEcosystem({ Component, pageProps }: AppProps) {
+ const router = useRouter();
return (
@@ -22,6 +25,7 @@ function StarknetEcosystem({ Component, pageProps }: AppProps) {
+
diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx
index ab4b067f..455c24fb 100644
--- a/src/pages/_document.tsx
+++ b/src/pages/_document.tsx
@@ -1,7 +1,6 @@
/* eslint-disable react/jsx-props-no-spreading */
import { ColorModeScript } from "@chakra-ui/color-mode";
import createEmotionServer from "@emotion/server/create-instance";
-import { SpeedInsights } from "@vercel/speed-insights/next";
import type { DocumentContext } from "next/document";
import Document, { Html, Head, Main, NextScript } from "next/document";
import * as React from "react";
@@ -115,7 +114,6 @@ class MyDocument extends Document {
-