Only check for updates in prod.

This commit is contained in:
Mike Cao 2025-02-11 20:36:08 -08:00
parent 9950ecda82
commit 00adf7abb0

View file

@ -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/') &&