From 3adc965dd09490b7efa1cce9f09b0a3b30970277 Mon Sep 17 00:00:00 2001
From: 简律纯 <hsiangnianian@outlook.com>
Date: Wed, 19 Apr 2023 17:30:39 +0800
Subject: ✨优化文档
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 envshare/app/components/analytics.tsx | 22 ----------------------
 1 file changed, 22 deletions(-)
 delete mode 100644 envshare/app/components/analytics.tsx

(limited to 'envshare/app/components/analytics.tsx')

diff --git a/envshare/app/components/analytics.tsx b/envshare/app/components/analytics.tsx
deleted file mode 100644
index ef6a2ae..0000000
--- a/envshare/app/components/analytics.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-"use client";
-import { Analytics as VercelAnalytics } from "@vercel/analytics/react";
-
-const track = ["/", "/share", "/deploy", "/unseal"];
-
-export function Analytics() {
-  return (
-    <VercelAnalytics
-      beforeSend={(event) => {
-        const url = new URL(event.url);
-        if (!track.includes(url.pathname)) {
-          url.pathname = "/__redacted";
-          return {
-            ...event,
-            url: url.href,
-          };
-        }
-        return event;
-      }}
-    />
-  );
-}
-- 
cgit v1.2.3-70-g09d2

