mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-26 15:53:53 +03:00
fix(core): add env info to tracks (#6313)
This commit is contained in:
parent
e9bc24bf37
commit
ffbfdb65a2
@ -14,6 +14,10 @@ function RootRouter() {
|
||||
useEffect(() => {
|
||||
mixpanel.track_pageview({
|
||||
page: location.pathname,
|
||||
appVersion: runtimeConfig.appVersion,
|
||||
environment: runtimeConfig.appBuildType,
|
||||
editorVersion: runtimeConfig.editorVersion,
|
||||
isSelfHosted: Boolean(runtimeConfig.isSelfHosted),
|
||||
});
|
||||
}, [location]);
|
||||
return <Outlet />;
|
||||
|
@ -349,6 +349,7 @@ export const createConfiguration: (
|
||||
),
|
||||
'process.env.SENTRY_DSN': JSON.stringify(process.env.SENTRY_DSN),
|
||||
'process.env.BUILD_TYPE': JSON.stringify(process.env.BUILD_TYPE),
|
||||
'process.env.MIXPANEL_TOKEN': `"${process.env.MIXPANEL_TOKEN}"`,
|
||||
runtimeConfig: JSON.stringify(runtimeConfig),
|
||||
}),
|
||||
new CopyPlugin({
|
||||
|
Loading…
Reference in New Issue
Block a user