mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 01:25:37 +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 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/') &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue