Skip to content

Commit

Permalink
Fix posthog env
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed Nov 12, 2024
1 parent 5678f77 commit 12e5225
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/profile/.env.development
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VITE_CARTRIDGE_API_URL="http://localhost:8000"
VITE_KEYCHAIN_URL="http://localhost:3001"
VITE_RPC_SEPOLIA="http://localhost:8001/x/starknet/sepolia"
NEXT_PUBLIC_POSTHOG_KEY=phc_UWaJajNQ00PjHhveZ81SJ2zVtBicKrzewdZHGiyavQQ
NEXT_PUBLIC_POSTHOG_HOST=https://profile.cartridge.gg/ingest
VITE_POSTHOG_KEY=phc_UWaJajNQ00PjHhveZ81SJ2zVtBicKrzewdZHGiyavQQ
VITE_POSTHOG_HOST=https://profile.cartridge.gg/ingest
4 changes: 2 additions & 2 deletions packages/profile/.env.production
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VITE_CARTRIDGE_API_URL="https://api.cartridge.gg"
VITE_KEYCHAIN_URL="https://x.cartridge.gg"
VITE_RPC_SEPOLIA="https://api.cartridge.gg/x/starknet/sepolia"
NEXT_PUBLIC_POSTHOG_KEY=phc_UWaJajNQ00PjHhveZ81SJ2zVtBicKrzewdZHGiyavQQ
NEXT_PUBLIC_POSTHOG_HOST=https://profile.cartridge.gg/ingest
VITE_POSTHOG_KEY=phc_UWaJajNQ00PjHhveZ81SJ2zVtBicKrzewdZHGiyavQQ
VITE_POSTHOG_HOST=https://profile.cartridge.gg/ingest
4 changes: 2 additions & 2 deletions packages/profile/src/components/context/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import posthog from "posthog-js";
import { PostHogProvider } from "posthog-js/react";

if (typeof window !== "undefined") {
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST,
posthog.init(process.env.VITE_POSTHOG_KEY!, {
api_host: process.env.VITE_POSTHOG_HOST,
person_profiles: "always",
enable_recording_console_log: true,
loaded: (posthog) => {
Expand Down

0 comments on commit 12e5225

Please sign in to comment.