Skip to content

Commit

Permalink
refactor: remove debug setting from init call (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal authored Jun 17, 2024
1 parent 4005800 commit b42dc71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import { ChakraProvider } from "@chakra-ui/react";
import mixpanel from "mixpanel-browser";
import React from "react";

const debug = process.env.NODE_ENV === "development";

export default function Home() {
React.useEffect(() => {
if (process.env.NEXT_PUBLIC_MIXPANEL_TOKEN) {
mixpanel.init(process.env.NEXT_PUBLIC_MIXPANEL_TOKEN, {
debug: true,
debug,
track_pageview: true,
persistence: "localStorage",
});
Expand Down

1 comment on commit b42dc71

@vercel
Copy link

@vercel vercel bot commented on b42dc71 Jun 17, 2024

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.