refactor: Add @vercel/analytics dependency and integrate Analytics component in layout

This commit is contained in:
2025-10-16 12:57:54 +02:00
parent a310fe9564
commit ac52eaf984
3 changed files with 37 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
"lint": "eslint"
},
"dependencies": {
"@vercel/analytics": "^1.5.0",
"bcrypt": "^6.0.0",
"mysql2": "^3.15.2",
"next": "15.5.5",

34
pnpm-lock.yaml generated
View File

@@ -8,6 +8,9 @@ importers:
.:
dependencies:
'@vercel/analytics':
specifier: ^1.5.0
version: 1.5.0(next@15.5.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react@19.1.0)
bcrypt:
specifier: ^6.0.0
version: 6.0.0
@@ -623,6 +626,32 @@ packages:
cpu: [x64]
os: [win32]
'@vercel/analytics@1.5.0':
resolution: {integrity: sha512-MYsBzfPki4gthY5HnYN7jgInhAZ7Ac1cYDoRWFomwGHWEX7odTEzbtg9kf/QSo7XEsEAqlQugA6gJ2WS2DEa3g==}
peerDependencies:
'@remix-run/react': ^2
'@sveltejs/kit': ^1 || ^2
next: '>= 13'
react: ^18 || ^19 || ^19.0.0-rc
svelte: '>= 4'
vue: ^3
vue-router: ^4
peerDependenciesMeta:
'@remix-run/react':
optional: true
'@sveltejs/kit':
optional: true
next:
optional: true
react:
optional: true
svelte:
optional: true
vue:
optional: true
vue-router:
optional: true
acorn-jsx@5.3.2:
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
peerDependencies:
@@ -2360,6 +2389,11 @@ snapshots:
'@unrs/resolver-binding-win32-x64-msvc@1.11.1':
optional: true
'@vercel/analytics@1.5.0(next@15.5.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react@19.1.0)':
optionalDependencies:
next: 15.5.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
react: 19.1.0
acorn-jsx@5.3.2(acorn@8.15.0):
dependencies:
acorn: 8.15.0

View File

@@ -1,6 +1,7 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { Analytics } from "@vercel/analytics/next"
const geistSans = Geist({
variable: "--font-geist-sans",
@@ -29,6 +30,7 @@ export default function RootLayout({
>
{children}
</body>
<Analytics />
</html>
);
}