Skip to content

Commit 7c62ae1

Browse files
authored
Merge pull request #1471 from scroll-tech/vercel-speed-insights
chore: vercel speed insight
2 parents 0b7cafc + 56b77bb commit 7c62ae1

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"@tanstack/react-virtual": "^3.11.2",
3636
"@types/mdx": "^2.0.13",
3737
"@typescript-eslint/parser": "^8.4.0",
38+
"@vercel/speed-insights": "^1.2.0",
3839
"clsx": "^2.1.1",
3940
"copy-to-clipboard": "^3.3.2",
4041
"dayjs": "^1.11.5",

src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { GoogleAnalytics } from "@next/third-parties/google"
2+
import { SpeedInsights } from "@vercel/speed-insights/next"
23
import { Metadata } from "next"
34
// import SentrySetting from "@/components/SentrySetting"
45
import React, { Suspense } from "react"
@@ -45,6 +46,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
4546
</AppRouterCacheProvider>
4647
{process.env.NODE_ENV === "production" && (
4748
<>
49+
<SpeedInsights></SpeedInsights>
4850
<Suspense fallback={null}>
4951
<GoogleAnalytics gaId={process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID} />
5052
</Suspense>

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3728,6 +3728,11 @@
37283728
resolved "https://registry.yarnpkg.com/@vanilla-extract/sprinkles/-/sprinkles-1.6.1.tgz#2c8a832757a0d8104dc6bd5d961db2c70d1dbdcb"
37293729
integrity sha512-N/RGKwGAAidBupZ436RpuweRQHEFGU+mvAqBo8PRMAjJEmHoPDttV8RObaMLrJHWLqvX+XUMinHUnD0hFRQISw==
37303730

3731+
"@vercel/speed-insights@^1.2.0":
3732+
version "1.2.0"
3733+
resolved "https://registry.yarnpkg.com/@vercel/speed-insights/-/speed-insights-1.2.0.tgz#1656c3596d4ec02d93d301ca45944c1b9b245186"
3734+
integrity sha512-y9GVzrUJ2xmgtQlzFP2KhVRoCglwfRQgjyfY607aU0hh0Un6d0OUyrJkjuAlsV18qR4zfoFPs/BiIj9YDS6Wzw==
3735+
37313736
37323737
version "5.1.8"
37333738
resolved "https://registry.yarnpkg.com/@wagmi/connectors/-/connectors-5.1.8.tgz#3793fecfa8bbe7c1b675f36103fc3bfdb8262e63"

0 commit comments

Comments
 (0)