From 416eb4b4cf28726af0f83e71c5ebf900a58ad3cb Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Wed, 16 Feb 2022 12:19:00 -0500 Subject: [PATCH] only count post hits on production site --- components/NoteMeta/NoteMeta.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/components/NoteMeta/NoteMeta.tsx b/components/NoteMeta/NoteMeta.tsx index 46be2c91..8530a8c6 100644 --- a/components/NoteMeta/NoteMeta.tsx +++ b/components/NoteMeta/NoteMeta.tsx @@ -56,12 +56,15 @@ const NoteMeta = ({ slug, date, title, tags = [] }: NoteMetaProps) => ( -
- - - - -
+ {/* only count hits on production site */} + {process.env.NEXT_PUBLIC_VERCEL_ENV === "production" && ( +
+ + + + +
+ )} );