From aa8127b4eb847cfe24f8dd2f991833c0d31be112 Mon Sep 17 00:00:00 2001
From: Hampus Hallkvist
Date: Sun, 10 Mar 2024 17:15:48 +0100
Subject: [PATCH] fix: Add vercel speed insight
---
package.json | 1 +
pnpm-lock.yaml | 31 +++++++++++++++++++++++++++++++
src/app/layout.tsx | 7 +++----
3 files changed, 35 insertions(+), 4 deletions(-)
diff --git a/package.json b/package.json
index ec04919..e4caf69 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,7 @@
"@radix-ui/react-slot": "^1.0.2",
"@t3-oss/env-nextjs": "^0.9.2",
"@tanstack/react-query": "^5.20.1",
+ "@vercel/speed-insights": "^1.0.10",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"contentful": "^10.6.21",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a37df56..0f0ebae 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -35,6 +35,9 @@ dependencies:
'@tanstack/react-query':
specifier: ^5.20.1
version: 5.20.5(react@18.2.0)
+ '@vercel/speed-insights':
+ specifier: ^1.0.10
+ version: 1.0.10(next@14.1.0)(react@18.2.0)
class-variance-authority:
specifier: ^0.7.0
version: 0.7.0
@@ -1137,6 +1140,34 @@ packages:
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
dev: true
+ /@vercel/speed-insights@1.0.10(next@14.1.0)(react@18.2.0):
+ resolution: {integrity: sha512-4uzdKB0RW6Ff2FkzshzjZ+RlJfLPxgm/00i0XXgxfMPhwnnsk92YgtqsxT9OcPLdJUyVU1DqFlSWWjIQMPkh0g==}
+ requiresBuild: true
+ peerDependencies:
+ '@sveltejs/kit': ^1 || ^2
+ next: '>= 13'
+ react: ^18 || ^19
+ svelte: ^4
+ vue: ^3
+ vue-router: ^4
+ peerDependenciesMeta:
+ '@sveltejs/kit':
+ optional: true
+ next:
+ optional: true
+ react:
+ optional: true
+ svelte:
+ optional: true
+ vue:
+ optional: true
+ vue-router:
+ optional: true
+ dependencies:
+ next: 14.1.0(react-dom@18.2.0)(react@18.2.0)
+ react: 18.2.0
+ dev: false
+
/acorn-jsx@5.3.2(acorn@8.11.3):
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
peerDependencies:
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 4665f6f..14db8dc 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,5 +1,5 @@
import Providers from "@/app/providers"
-import { NavigationMenu } from "@/components/shared/NavigationMenu"
+import { SpeedInsights } from "@vercel/speed-insights/next"
import { DateTime } from "luxon"
import type { Metadata } from "next"
import { Bebas_Neue, Inter, Lato } from "next/font/google"
@@ -38,9 +38,8 @@ export default function RootLayout({
-
- {children}
-
+
+ {children}
)