Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Only check for updates in prod.

Mike Cao00adf7abb03a
diff --git a/src/app/(main)/UpdateNotice.tsx b/src/app/(main)/UpdateNotice.tsx
index 7504943b0..17c2bce7a 100644
--- a/src/app/(main)/UpdateNotice.tsx
+++ b/src/app/(main)/UpdateNotice.tsx
@@ -14,6 +14,7 @@ export function UpdateNotice({ user, config }) {
const pathname = usePathname();
const [dismissed, setDismissed] = useState(checked);
const allowUpdate =
+ process.env.NODE_ENV === 'production' &&
user?.isAdmin &&
!config?.updatesDisabled &&
!pathname.includes('/share/') &&