From 794d315c6a059e9f2bceb64d72e03ab78489b64e Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Sun, 13 Apr 2025 12:41:49 -0400 Subject: [PATCH] re-enable vercel analytics --- .env.example | 2 -- README.md | 3 +-- app/analytics.tsx | 24 ------------------ app/layout.tsx | 2 +- app/privacy/page.mdx | 2 +- app/robots.ts | 2 +- lib/env.ts | 17 ------------- next.config.ts | 44 ++------------------------------- package.json | 5 ++-- pnpm-lock.yaml | 58 +++++++++++++++++++++++++++++++++++--------- public/humans.txt | 1 - 11 files changed, 55 insertions(+), 105 deletions(-) delete mode 100644 app/analytics.tsx diff --git a/.env.example b/.env.example index 850b4ee6..efe4fc9b 100644 --- a/.env.example +++ b/.env.example @@ -14,5 +14,3 @@ NEXT_PUBLIC_GISCUS_CATEGORY_ID= NEXT_PUBLIC_GISCUS_REPO_ID= NEXT_PUBLIC_ONION_DOMAIN= NEXT_PUBLIC_TURNSTILE_SITE_KEY= -NEXT_PUBLIC_UMAMI_URL= -NEXT_PUBLIC_UMAMI_WEBSITE_ID= diff --git a/README.md b/README.md index cc666f71..5ee71ddc 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![GitHub repo size](https://img.shields.io/github/repo-size/jakejarvis/jarv.is?color=009cdf&label=repo%20size&logo=git&logoColor=white)](https://github.com/jakejarvis/jarv.is) [![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fjarv.is%2Fapi%2Fhits&query=%24.total.hits&logo=googleanalytics&logoColor=white&label=hits&color=salmon&cacheSeconds=1800)](https://jarv.is/api/hits) -My humble abode on the World Wide Web, created and deployed using [Next.js](https://nextjs.org/), [Vercel](https://vercel.com/), [Upstash Redis](https://upstash.com/), [Giscus](https://giscus.app/), [Umami](https://umami.is/), [and more](https://jarv.is/humans.txt). +My humble abode on the World Wide Web, created and deployed using [Next.js](https://nextjs.org/), [Vercel](https://vercel.com/), [Upstash Redis](https://upstash.com/), [Giscus](https://giscus.app/), [and more](https://jarv.is/humans.txt). ## đŸ•šī¸ Getting Started @@ -21,7 +21,6 @@ I highly recommend spinning up a [Codespace](https://github.com/features/codespa ## 🌎 Related - [đŸ’ģ /uses](https://jarv.is/uses) – Things and stuff I use. -- [📈 /stats](https://jarv.is/stats) - Public [Umami](https://umami.is/) dashboard. - [đŸ•°ī¸ /previously](https://jarv.is/previously) – An embarrassing trip down this site's memory lane. - Visit [/y2k](https://jarv.is/y2k) if you want to experience the _fully_ immersive time machine, but don't say I didn't warn you... - [🧅 Tor (.onion) mirror](http://jarvis2i2vp4j4tbxjogsnqdemnte5xhzyi7hziiyzxwge3hzmh57zad.onion/) – For an excessive level of privacy and security. diff --git a/app/analytics.tsx b/app/analytics.tsx deleted file mode 100644 index b9c4e122..00000000 --- a/app/analytics.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import { env } from "../lib/env"; -import Script from "next/script"; - -const Analytics = () => { - if (env.VERCEL_ENV !== "production") { - return null; - } - - if (!env.NEXT_PUBLIC_UMAMI_WEBSITE_ID) { - return null; - } - - return ( -