Add basePath for telemetry.

This commit is contained in:
Maxime-J 2024-02-15 10:59:00 +00:00
parent f50067e44f
commit b81f5112bc

View File

@ -27,7 +27,7 @@ export function App({ children }) {
{children} {children}
<UpdateNotice user={user} config={config} /> <UpdateNotice user={user} config={config} />
{process.env.NODE_ENV === 'production' && !pathname.includes('/share/') && ( {process.env.NODE_ENV === 'production' && !pathname.includes('/share/') && (
<Script src={`/telemetry.js`} /> <Script src={`${process.env.basePath}/telemetry.js`} />
)} )}
</> </>
); );