From 9586a2a7356cc86ca96d473f0c1062717b5b02ee Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 23 Jul 2024 15:29:17 +0800 Subject: [PATCH] feat: check production --- lib/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config.ts b/lib/config.ts index c6ae0b3ee..ce1604e4a 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -714,7 +714,7 @@ calculateValue(); } } - if (!envs.DISABLE_UMAMI) { + if (!envs.DISABLE_UMAMI && envs.NODE_ENV === 'production') { ofetch(`https://umami.rss3.io/api/send`, { method: 'POST', headers: {