From c47f4d83dc4f521d66045f5297a22562375f18d6 Mon Sep 17 00:00:00 2001 From: Agustinus Nathaniel Date: Tue, 12 Dec 2023 09:28:53 +0700 Subject: [PATCH] chore: add vercel SpeedInsights --- package.json | 1 + pnpm-lock.yaml | 10 ++++++++++ src/app/layout.tsx | 2 ++ 3 files changed, 13 insertions(+) diff --git a/package.json b/package.json index 16adf5c1..313840af 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "@giscus/react": "^2.3.0", "@prisma/client": "^5.5.2", "@t3-oss/env-nextjs": "^0.7.1", + "@vercel/speed-insights": "^1.0.1", "cmdk": "^0.2.0", "contentlayer": "^0.3.4", "date-fns": "^2.30.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2a1f0f87..ace8ccee 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,6 +26,9 @@ dependencies: '@t3-oss/env-nextjs': specifier: ^0.7.1 version: 0.7.1(typescript@5.2.2)(zod@3.22.4) + '@vercel/speed-insights': + specifier: ^1.0.1 + version: 1.0.1 cmdk: specifier: ^0.2.0 version: 0.2.0(@types/react@18.2.33)(react-dom@18.2.0)(react@18.2.0) @@ -3762,6 +3765,11 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true + /@vercel/speed-insights@1.0.1: + resolution: {integrity: sha512-cm8KTTsDgS1AbWsgIEZuMoyPUjclzeqJihyLp0tnA21B/x9iTE8hu2S5zM+/DBzihuHxWL1dx9pCWk22ctMFWQ==} + requiresBuild: true + dev: false + /@vitest/coverage-c8@0.33.0(vitest@0.34.6): resolution: {integrity: sha512-DaF1zJz4dcOZS4k/neiQJokmOWqsGXwhthfmUdPGorXIQHjdPvV6JQSYhQDI41MyI8c+IieQUdIDs5XAMHtDDw==} deprecated: v8 coverage is moved to @vitest/coverage-v8 package @@ -7597,6 +7605,7 @@ packages: /json-schema-traverse@1.0.0: resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + requiresBuild: true dev: true /json-stable-stringify-without-jsonify@1.0.1: @@ -9954,6 +9963,7 @@ packages: /require-from-string@2.0.2: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} engines: {node: '>=0.10.0'} + requiresBuild: true dev: true /resolve-dir@1.0.1: diff --git a/src/app/layout.tsx b/src/app/layout.tsx index d7e2f318..2c1486b1 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,3 +1,4 @@ +import { SpeedInsights } from '@vercel/speed-insights/next'; import type { Metadata, Viewport } from 'next'; import Script from 'next/script'; import NextTopLoader from 'nextjs-toploader'; @@ -89,6 +90,7 @@ const RootLayout = ({ children }: RootLayoutProps) => { src={env.NEXT_PUBLIC_UMAMI_SRC} data-domains="sznm.dev" /> + );