mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Only check for updates in prod.
This commit is contained in:
parent
9950ecda82
commit
00adf7abb0
1 changed files with 1 additions and 0 deletions
|
|
@ -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/') &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue