1
0
Fork 0

feat(vojtechmares.com): add @vercel/speed-insights

Signed-off-by: Vojtech Mares <iam@vojtechmares.com>
This commit is contained in:
Vojtěch Mareš 2024-01-01 12:42:33 +01:00
parent 27a3f4c904
commit 3309972c77
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
3 changed files with 11 additions and 0 deletions

View file

@ -1,5 +1,6 @@
import type { Metadata } from 'next'
import { Analytics } from '@vercel/analytics/react'
import { SpeedInsights } from "@vercel/speed-insights/next"
import { Footer } from '@/components/layout/Footer'
import { Navigation } from '@/components/layout/Navigation'
@ -62,6 +63,7 @@ const RootLayout = ({ children }: { children: React.ReactNode }) => {
{children}
<Footer />
<Analytics />
<SpeedInsights />
</body>
</html>
)

View file

@ -16,6 +16,7 @@
"@next/mdx": "13.5.4",
"@tailwindcss/typography": "^0.5.10",
"@vercel/analytics": "^1.1.0",
"@vercel/speed-insights": "^1.0.2",
"clsx": "^2.0.0",
"next": "13.5.4",
"react": "18.2.0",

8
pnpm-lock.yaml generated
View file

@ -99,6 +99,9 @@ importers:
'@vercel/analytics':
specifier: ^1.1.0
version: 1.1.0
'@vercel/speed-insights':
specifier: ^1.0.2
version: 1.0.2
clsx:
specifier: ^2.0.0
version: 2.0.0
@ -1134,6 +1137,11 @@ packages:
server-only: 0.0.1
dev: false
/@vercel/speed-insights@1.0.2:
resolution: {integrity: sha512-y5HWeB6RmlyVYxJAMrjiDEz8qAIy2cit0fhBq+MD78WaUwQvuBnQlX4+5MuwVTWi46bV3klaRMq83u9zUy1KOg==}
requiresBuild: true
dev: false
/@vitejs/plugin-react@4.1.0(vite@4.4.11):
resolution: {integrity: sha512-rM0SqazU9iqPUraQ2JlIvReeaxOoRj6n+PzB1C0cBzIbd8qP336nC39/R9yPi3wVcah7E7j/kdU1uCUqMEU4OQ==}
engines: {node: ^14.18.0 || >=16.0.0}