From 00adf7abb03a7a7ad233d98041b387b9f6c14543 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Tue, 11 Feb 2025 20:36:08 -0800 Subject: [PATCH] Only check for updates in prod. --- src/app/(main)/UpdateNotice.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/(main)/UpdateNotice.tsx b/src/app/(main)/UpdateNotice.tsx index 7504943b..17c2bce7 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/') &&