From d7cb44de3a729b559d0e059f40c2732d621b87ba Mon Sep 17 00:00:00 2001 From: hex2077 Date: Tue, 21 Oct 2025 15:14:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(analytics):=20=E9=9B=86=E6=88=90umami?= =?UTF-8?q?=E7=BD=91=E7=AB=99=E7=BB=9F=E8=AE=A1=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在环境变量中添加NEXT_PUBLIC_UMAMI_WEBSITE_ID配置项 - 在根布局中集成umami统计脚本 - 修正网站名称为Podcast Hub以保持品牌一致性 --- web/.env | 4 +++- web/src/app/[lang]/layout.tsx | 7 +++++++ web/src/app/[lang]/podcast/[fileName]/layout.tsx | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/web/.env b/web/.env index 6cce520..5d50e3c 100644 --- a/web/.env +++ b/web/.env @@ -20,4 +20,6 @@ BETTER_AUTH_URL=http://localhost:3000 #Base URL of your app. GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= GITHUB_ID= -GITHUB_SECRET= \ No newline at end of file +GITHUB_SECRET= +# Umami 统计配置 +NEXT_PUBLIC_UMAMI_WEBSITE_ID= \ No newline at end of file diff --git a/web/src/app/[lang]/layout.tsx b/web/src/app/[lang]/layout.tsx index 7e8177e..88a8c7d 100644 --- a/web/src/app/[lang]/layout.tsx +++ b/web/src/app/[lang]/layout.tsx @@ -70,6 +70,13 @@ export default async function RootLayout({ + {process.env.NEXT_PUBLIC_UMAMI_WEBSITE_ID && ( +