Skip to content

Commit

Permalink
fix: Fix passing ENV variable to useInitAnalytics function
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnm committed Mar 7, 2024
1 parent ad3a4c0 commit 657597e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/projects-docs/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ export default function Nextra({ Component, pageProps }) {
const getLayout = Component.getLayout || ((page) => page);
const router = useRouter();

// "a205ed9b06a7baf5a594bdd30293aa80"
// process.env.NEXT_PUBLIC_AMPLITUDE
useInitAnalytics("a205ed9b06a7baf5a594bdd30293aa80");
useInitAnalytics(process.env.NEXT_PUBLIC_AMPLITUDE);

const isBrowser = typeof window !== "undefined";
const [initialRouteTracked, setInitialRouteTracked] = useState(false);
Expand Down

0 comments on commit 657597e

Please sign in to comment.