Skip to content

Commit

Permalink
chore: new anlaytics env var to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
chambaz committed Dec 3, 2023
1 parent 6770695 commit 232da63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions apps/marginfi-v2-ui/src/utils/analytics.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import posthog from "posthog-js";

const _checkEnv = () =>
!process.env.NEXT_PUBLIC_POSTHOG_API_KEY || process.env.NEXT_PUBLIC_MARGINFI_ENVIRONMENT !== "production";
const _checkEnv = () => !process.env.NEXT_PUBLIC_POSTHOG_API_KEY || process.env.NEXT_PUBLIC_ANALYTICS !== "true";

export const init = () => {
if (_checkEnv()) return;
Expand Down
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"NEXT_PUBLIC_WEB3_AUTH_CLIENT_ID",
"NEXT_PUBLIC_MOONPAY_API_KEY",
"MOONPAY_SECRET_KEY",
"NEXT_PUBLIC_POSTHOG_API_KEY"
"NEXT_PUBLIC_POSTHOG_API_KEY",
"NEXT_PUBLIC_ANALYTICS"
]
}

3 comments on commit 232da63

@vercel
Copy link

@vercel vercel bot commented on 232da63 Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

marginfi-landing-page – ./apps/marginfi-landing-page

marginfi-landing-page-mrgn.vercel.app
marginfi-landing-page-git-production-mrgn.vercel.app
marginfi-landing-page.vercel.app
marginfi.com
www.marginfi.com

@vercel
Copy link

@vercel vercel bot commented on 232da63 Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

omni – ./apps/omni

omni-git-production-mrgn.vercel.app
omni-one.vercel.app
omni-mrgn.vercel.app
omni.marginfi.com

@vercel
Copy link

@vercel vercel bot commented on 232da63 Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.