Only check for updates in prod.
This commit is contained in:
@@ -14,6 +14,7 @@ export function UpdateNotice({ user, config }) {
|
|||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
const [dismissed, setDismissed] = useState(checked);
|
const [dismissed, setDismissed] = useState(checked);
|
||||||
const allowUpdate =
|
const allowUpdate =
|
||||||
|
process.env.NODE_ENV === 'production' &&
|
||||||
user?.isAdmin &&
|
user?.isAdmin &&
|
||||||
!config?.updatesDisabled &&
|
!config?.updatesDisabled &&
|
||||||
!pathname.includes('/share/') &&
|
!pathname.includes('/share/') &&
|
||||||
|
|||||||
Reference in New Issue
Block a user