diff --git a/web-app/package-lock.json b/web-app/package-lock.json index 55e10cd..3043ca4 100644 --- a/web-app/package-lock.json +++ b/web-app/package-lock.json @@ -28,7 +28,6 @@ "graphql": "^16.8.2", "graphql-ws": "^5.16.0", "lodash": "^4.17.21", - "posthog-js": "^1.139.2", "prismjs": "^1.29.0", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -3564,15 +3563,6 @@ "version": "4.2.0", "license": "MIT" }, - "node_modules/posthog-js": { - "version": "1.147.0", - "license": "MIT", - "dependencies": { - "fflate": "^0.4.8", - "preact": "^10.19.3", - "web-vitals": "^4.0.1" - } - }, "node_modules/preact": { "version": "10.22.1", "license": "MIT", diff --git a/web-app/package.json b/web-app/package.json index 7daaad1..03b4f3c 100644 --- a/web-app/package.json +++ b/web-app/package.json @@ -35,7 +35,6 @@ "graphql": "^16.8.2", "graphql-ws": "^5.16.0", "lodash": "^4.17.21", - "posthog-js": "^1.139.2", "prismjs": "^1.29.0", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/web-app/src/main.tsx b/web-app/src/main.tsx index 5a0da5f..d056dc0 100644 --- a/web-app/src/main.tsx +++ b/web-app/src/main.tsx @@ -2,39 +2,9 @@ import { PropsWithChildren } from 'react'; import ReactDOM from 'react-dom/client'; -import posthog from 'posthog-js'; -import { PostHogProvider } from 'posthog-js/react'; import App from './modules/core/App'; import './index.css'; -const VITE_POSTHOG_KEY = 'phc_hPZOabiIQet1rsxRGAELYmKy8eByxgklujcj3rTz4cd'; -const VITE_POSTHOG_HOST = 'https://eu.posthog.com'; - -const PostHogProviderWrapper = ({ children }: PropsWithChildren) => { - if (window.location.host === '0l.fyi') { - posthog.init(VITE_POSTHOG_KEY, { - api_host: VITE_POSTHOG_HOST, - }); - - return ( - - {children} - - ); - } - return <>{children}; -}; - -ReactDOM.createRoot(document.getElementById('root')!).render( - // - - - , - // -); +ReactDOM.createRoot(document.getElementById('root')!).render();