From 4919f028c884a041da7ff098abb02389b4eac598 Mon Sep 17 00:00:00 2001
From: 简律纯 <hsiangnianian@outlook.com>
Date: Tue, 18 Apr 2023 03:02:17 +0800
Subject: ✨add envshare docs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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

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

diff --git a/app/components/analytics.tsx b/app/components/analytics.tsx
deleted file mode 100644
index ef6a2ae..0000000
--- a/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

