Only check for updates in prod.
This commit is contained in:
@@ -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/') &&
|
||||
|
||||
Reference in New Issue
Block a user