fix(website): Use dummy when mixpanel token is blank (#9209)

This fixes an issue on dev if the `NEXT_PUBLIC_MIXPANEL_TOKEN` env var
is not available.
This commit is contained in:
Jamil
2025-05-22 14:08:11 -07:00
committed by GitHub
parent e84ba4545e
commit 06551c80c8

View File

@@ -8,7 +8,7 @@ import { HubSpotSubmittedFormData } from "./types";
function _Mixpanel() {
const pathname = usePathname();
const searchParams = useSearchParams();
const mpToken = process.env.NEXT_PUBLIC_MIXPANEL_TOKEN || "";
const mpToken = process.env.NEXT_PUBLIC_MIXPANEL_TOKEN || "dummy";
const host = "https://t.firez.one";
useEffect(() => {