Only check for updates in prod.
This commit is contained in:
1 parent
9950ecda82
commit
00adf7abb0
1 file changed
+1
@@ -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