From 81d8c4c9d6d4f2243280ffa018ab806a1600b1da Mon Sep 17 00:00:00 2001 From: Sebastian Sebald Date: Sun, 12 Nov 2023 20:02:33 +0100 Subject: [PATCH] feat: remove vercel analytics --- app/_components/analytics.tsx | 4 ---- app/layout.tsx | 2 -- package.json | 3 +-- pnpm-lock.yaml | 15 +-------------- 4 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 app/_components/analytics.tsx diff --git a/app/_components/analytics.tsx b/app/_components/analytics.tsx deleted file mode 100644 index 3ba0ae4b..00000000 --- a/app/_components/analytics.tsx +++ /dev/null @@ -1,4 +0,0 @@ -'use client'; -import { Analytics } from '@vercel/analytics/react'; - -export const AnalyticsWrapper = () => ; diff --git a/app/layout.tsx b/app/layout.tsx index 49d905a7..4fd58426 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -4,7 +4,6 @@ import { cn } from '@/lib/utils'; import './globals.css'; import { sans } from './fonts'; -import { AnalyticsWrapper } from './_components/analytics'; import { Analytics } from './_components/google-analytics'; import { SiteHeader } from './_components/site-header'; import { SiteFooter } from './_components/site-footer'; @@ -34,7 +33,6 @@ const Layout = ({ children }: LayoutProps) => ( {children} - diff --git a/package.json b/package.json index 79fa94c2..c3fe65cf 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "@radix-ui/react-accordion": "1.1.2", "@radix-ui/react-dialog": "1.0.5", "@radix-ui/react-switch": "1.0.3", - "@vercel/analytics": "1.1.1", "cheerio": "1.0.0-rc.12", "class-variance-authority": "0.7.0", "clsx": "2.0.0", @@ -23,7 +22,7 @@ "kysely": "0.26.3", "mysql2": "3.6.3", "next": "14.0.1", - "nextjs-google-analytics": "^2.3.3", + "nextjs-google-analytics": "2.3.3", "p-limit": "4.0.0", "query-string": "^8.1.0", "react": "18.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index db7f401f..ec37dd71 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,9 +32,6 @@ dependencies: '@radix-ui/react-switch': specifier: 1.0.3 version: 1.0.3(@types/react-dom@18.2.14)(@types/react@18.2.35)(react-dom@18.2.0)(react@18.2.0) - '@vercel/analytics': - specifier: 1.1.1 - version: 1.1.1 cheerio: specifier: 1.0.0-rc.12 version: 1.0.0-rc.12 @@ -57,7 +54,7 @@ dependencies: specifier: 14.0.1 version: 14.0.1(@babel/core@7.20.12)(react-dom@18.2.0)(react@18.2.0) nextjs-google-analytics: - specifier: ^2.3.3 + specifier: 2.3.3 version: 2.3.3(next@14.0.1)(react@18.2.0) p-limit: specifier: 4.0.0 @@ -2272,12 +2269,6 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vercel/analytics@1.1.1: - resolution: {integrity: sha512-+NqgNmSabg3IFfxYhrWCfB/H+RCUOCR5ExRudNG2+pcRehq628DJB5e1u1xqwpLtn4pAYii4D98w7kofORAGQA==} - dependencies: - server-only: 0.0.1 - dev: false - /@xobotyi/scrollbar-width@1.9.5: resolution: {integrity: sha512-N8tkAACJx2ww8vFMneJmaAgmjAG1tnVBZJRLRcx061tmsLRZHSEZSLuGWnwPtunsSLvSqXQ2wfp7Mgqg1I+2dQ==} dev: false @@ -6121,10 +6112,6 @@ packages: resolution: {integrity: sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q==} dev: false - /server-only@0.0.1: - resolution: {integrity: sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==} - dev: false - /set-function-length@1.1.1: resolution: {integrity: sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==} engines: {node: '>= 0.4'}