From 03b6312a60666ef7842f2328e0277ae18ebbb3c1 Mon Sep 17 00:00:00 2001 From: mathis <37186532+maaaathis@users.noreply.github.com> Date: Thu, 28 Nov 2024 21:25:45 +0100 Subject: [PATCH] chore: remove plausible analytics (#417) --- app/providers.tsx | 19 +------------------ package.json | 1 - yarn.lock | 12 ------------ 3 files changed, 1 insertion(+), 31 deletions(-) diff --git a/app/providers.tsx b/app/providers.tsx index 547443d8..b89b7a64 100644 --- a/app/providers.tsx +++ b/app/providers.tsx @@ -1,6 +1,5 @@ 'use client'; -import PlausibleProvider from 'next-plausible'; import { ThemeProvider } from 'next-themes'; import type { FC, ReactElement, ReactNode } from 'react'; import { SWRConfig } from 'swr'; @@ -9,28 +8,12 @@ type ProvidersProps = { children: ReactNode; }; -const DiggaPlausibleProvider: FC = ({ children }) => { - if (!process.env.NEXT_PUBLIC_PLAUSIBLE_DOMAIN) { - return children; - } - - return ( - - {children} - - ); -}; - const Providers: FC = ({ children }): ReactElement => ( fetch(url).then((res) => res.json()) }} > - {children} + {children} ); diff --git a/package.json b/package.json index d4dfb789..2623d403 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,6 @@ "lucide-react": "^0.462.0", "natural-compare-lite": "^1.4.0", "next": "^15.0.3", - "next-plausible": "^3.12.4", "next-themes": "^0.4.3", "postcss": "^8.4.49", "punycode": "^2.3.1", diff --git a/yarn.lock b/yarn.lock index e500dae6..bc7a3cc1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7037,7 +7037,6 @@ __metadata: lucide-react: "npm:^0.462.0" natural-compare-lite: "npm:^1.4.0" next: "npm:^15.0.3" - next-plausible: "npm:^3.12.4" next-themes: "npm:^0.4.3" postcss: "npm:^8.4.49" prettier: "npm:^3.4.1" @@ -9517,17 +9516,6 @@ __metadata: languageName: node linkType: hard -"next-plausible@npm:^3.12.4": - version: 3.12.4 - resolution: "next-plausible@npm:3.12.4" - peerDependencies: - next: "^11.1.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 " - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - checksum: 10c0/70f1efd90ed5dc63089cd916e630883a62a03ec3319fde0b3a2a2303704a5e60b1843cf9f821e1b918514e3a9d5b0594eb8af6925a01132cb8705219db3bc99a - languageName: node - linkType: hard - "next-themes@npm:^0.4.3": version: 0.4.3 resolution: "next-themes@npm:0.4.3"