Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Merge branch 'main' into I-36-use-pre-built-frontend-image

Reginald Bondoc209673d74486
diff --cc frontend/components/utilities/attemptLogin.js
index 5fe00dc9ae,45cee1f945..7f14b20de2
--- a/frontend/components/utilities/attemptLogin.js
+++ b/frontend/components/utilities/attemptLogin.js
@@@ -31,9 -32,6 +31,8 @@@ const attemptLogin = async
isLogin
) => {
try {
- let userWorkspace, userOrg;
+ const telemetry = new Telemetry().getInstance();
+
client.init(
{
username: email,
@@@ -156,13 -148,20 +149,13 @@@
WEBSITE_URL: ["http://localhost:3000", "shared"],
STRIPE_SECRET_KEY: ["sk_test_7348oyho4hfq398HIUOH78", "shared"],
},
- projectToLogin,
- "Development"
- );
+ workspaceId: projectToLogin,
+ env: "Development"
+ });
}
- try {
- if (email) {
- if (ENV == "production") {
- const posthog = initPostHog();
- posthog.identify(email);
- posthog.capture("User Logged In");
- }
- }
- } catch (error) {
- console.log("posthog", error);
+ if (email) {
+ telemetry.identify(email);
+ telemetry.capture("User Logged In");
}
if (isLogin) {
diff --cc frontend/pages/_app.js
index 8bc612b3c0,a243771af7..04d8688992
--- a/frontend/pages/_app.js
+++ b/frontend/pages/_app.js
@@@ -2,10 -2,11 +2,10 @@@ import { useEffect } from "react"
import { useRouter } from "next/router";
import { config } from "@fortawesome/fontawesome-svg-core";
- import Layout from "~/components/basic/layout";
-import { initPostHog } from "~/components/analytics/posthog";
+ import Layout from "~/components/basic/Layout";
import RouteGuard from "~/components/RouteGuard";
import { publicPaths } from "~/const";
-import { ENV } from "~/utilities/config";
+import Telemetry from "~/utilities/telemetry/Telemetry";
import "@fortawesome/fontawesome-svg-core/styles.css";
import "../styles/globals.css";