From af7cf287425a09f3d527b3b0fdb0bda237766b2a Mon Sep 17 00:00:00 2001 From: Jesse Paterson Date: Tue, 30 Jul 2024 12:27:15 -0500 Subject: [PATCH] Added Speed Insights --- package.json | 1 + src/pages/_app.tsx | 2 ++ yarn.lock | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/package.json b/package.json index 7ee12b16..6f2638e3 100644 --- a/package.json +++ b/package.json @@ -88,6 +88,7 @@ "@types/express": "^4.17.21", "@types/lodash": "^4.17.6", "@uiw/react-md-editor": "^4.0.4", + "@vercel/speed-insights": "^1.0.12", "@webscopeio/react-textarea-autocomplete": "^4.9.2", "@xmtp/frames-validator": "^0.6.0", "@xmtp/proto": "^3.61.1", diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 5e70f26c..28b9fe5a 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -6,6 +6,7 @@ import type { NextPage } from "next"; import Head from "next/head"; import Providers from "@/common/providers"; import Sidebar from "@/common/components/organisms/Sidebar"; +import { SpeedInsights } from "@vercel/speed-insights/next"; export type NextPageWithLayout

= NextPage & { getLayout?: (page: React.ReactElement) => React.ReactNode; @@ -36,6 +37,7 @@ export default function MyApp({ Component, pageProps }: AppPropsWithLayout) { return ( <> + Nounspace diff --git a/yarn.lock b/yarn.lock index d852f473..6a4e7877 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5708,6 +5708,11 @@ satori "0.10.9" yoga-wasm-web "0.3.3" +"@vercel/speed-insights@^1.0.12": + version "1.0.12" + resolved "https://registry.yarnpkg.com/@vercel/speed-insights/-/speed-insights-1.0.12.tgz#71c2edffdedae98d34e306d7b0a573e6816898b4" + integrity sha512-ZGQ+a7bcfWJD2VYEp2R1LHvRAMyyaFBYytZXsfnbOMkeOvzGNVxUL7aVUvisIrTZjXTSsxG45DKX7yiw6nq2Jw== + "@videojs/http-streaming@3.12.1": version "3.12.1" resolved "https://registry.yarnpkg.com/@videojs/http-streaming/-/http-streaming-3.12.1.tgz#0d924879bc395e66e1d112698e0f54920ffae1d7"