diff --git a/.env.example b/.env.example index 3e421f4..be8502f 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -VERSION=0.1.19 +VERSION=0.1.20 # Nest run in docker, change host to database container name DB_HOST=localhost diff --git a/apps/webapp/app/hooks/usePostHog.ts b/apps/webapp/app/hooks/usePostHog.ts index d6aa7fc..b09979d 100644 --- a/apps/webapp/app/hooks/usePostHog.ts +++ b/apps/webapp/app/hooks/usePostHog.ts @@ -4,7 +4,11 @@ import { useEffect, useRef } from "react"; import { useOptionalUser, useUserChanged } from "./useUser"; -export const usePostHog = (apiKey?: string, logging = false, debug = false): void => { +export const usePostHog = ( + apiKey?: string, + logging = false, + debug = false, +): void => { const postHogInitialized = useRef(false); const location = useLocation(); const user = useOptionalUser(); @@ -15,7 +19,7 @@ export const usePostHog = (apiKey?: string, logging = false, debug = false): voi if (postHogInitialized.current === true) return; if (logging) console.log("Initializing PostHog"); posthog.init(apiKey, { - api_host: "https://eu.posthog.com", + api_host: "https://us.i.posthog.com", opt_in_site_apps: true, debug, loaded: function (posthog) { diff --git a/apps/webapp/vite.config.ts b/apps/webapp/vite.config.ts index 556821f..4c56b75 100644 --- a/apps/webapp/vite.config.ts +++ b/apps/webapp/vite.config.ts @@ -34,6 +34,8 @@ export default defineConfig({ "tailwindcss", "@tiptap/react", "react-tweet", + "posthog-js", + "posthog-js/react", ], external: ["@prisma/client"], }, diff --git a/hosting/docker/.env b/hosting/docker/.env index 4b6936f..4f80995 100644 --- a/hosting/docker/.env +++ b/hosting/docker/.env @@ -1,4 +1,4 @@ -VERSION=0.1.19 +VERSION=0.1.20 # Nest run in docker, change host to database container name DB_HOST=postgres diff --git a/package.json b/package.json index 713f3a6..f34096e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "core", "private": true, - "version": "0.1.19", + "version": "0.1.20", "workspaces": [ "apps/*", "packages/*"