Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Add basePath for telemetry.

Maxime-Jb81f5112bc84
diff --git a/src/app/(main)/App.tsx b/src/app/(main)/App.tsx
index 74be82922..406c2f164 100644
--- a/src/app/(main)/App.tsx
+++ b/src/app/(main)/App.tsx
@@ -27,7 +27,7 @@ export function App({ children }) {
{children}
<UpdateNotice user={user} config={config} />
{process.env.NODE_ENV === 'production' && !pathname.includes('/share/') && (
- <Script src={`/telemetry.js`} />
+ <Script src={`${process.env.basePath}/telemetry.js`} />
)}
</>
);