Merge pull request #270 from appwrite/fix-handle-empty-growth-endpoint

fix: analytics for preview deployments
This commit is contained in:
Torsten Dittmann
2023-02-09 15:58:42 +01:00
committed by GitHub
+2 -1
View File
@@ -5,7 +5,8 @@ import { page } from '$app/stores';
import { user } from '$lib/stores/user';
import { growthEndpoint, Mode } from '$lib/constants';
const isDevelopment = import.meta.env.DEV || import.meta.env?.VERCEL_ENV?.toString() === 'preview';
const isDevelopment =
import.meta.env.DEV || import.meta.env?.VITE_VERCEL_ENV?.toString() === 'preview';
const analytics = Analytics({
app: 'appwrite',
plugins: [