Merge pull request #190 from appwrite/fix-env-default

fix: env fallback
This commit is contained in:
Torsten Dittmann
2022-11-23 21:16:56 +01:00
committed by GitHub
+2 -2
View File
@@ -9,7 +9,7 @@ const analytics = Analytics({
app: 'appwrite',
plugins: [
googleAnalytics({
measurementIds: [import.meta.env.VITE_GA_PROJECT?.toString() ?? 'G-R4YJ9JN8L4']
measurementIds: [import.meta.env.VITE_GA_PROJECT?.toString() || 'G-R4YJ9JN8L4']
})
]
});
@@ -49,7 +49,7 @@ function sendEventToGrowth(event: string, path: string, data: object = null): vo
action: event,
label: event,
url: window.location.origin + path,
account: import.meta.env.VITE_CONSOLE_MODE?.toString() ?? Mode.SELF_HOSTED,
account: import.meta.env.VITE_CONSOLE_MODE?.toString() || Mode.SELF_HOSTED,
data: {
email,
name,