diff --git a/apps/formbricks-com/app/docs/getting-started/framework-guides/page.mdx b/apps/formbricks-com/app/docs/getting-started/framework-guides/page.mdx index 9c37b29742..fe09c1bf9c 100644 --- a/apps/formbricks-com/app/docs/getting-started/framework-guides/page.mdx +++ b/apps/formbricks-com/app/docs/getting-started/framework-guides/page.mdx @@ -99,7 +99,6 @@ if (typeof window !== "undefined") { formbricks.init({ environmentId: "", apiHost: "", - debug: true, // remove when in production }); } @@ -182,7 +181,6 @@ useEffect(() => { formbricks.init({ environmentId: "", apiHost: "", -debug: true, // remove when in production }); }, []); @@ -232,7 +230,6 @@ if (typeof window !== "undefined") { formbricks.init({ environmentId: "", apiHost: "", - debug: true, // remove when in production }); } diff --git a/apps/web/app/(app)/environments/[environmentId]/settings/setup/components/SetupInstructions.tsx b/apps/web/app/(app)/environments/[environmentId]/settings/setup/components/SetupInstructions.tsx index 51c6a98c7d..3348f4d4db 100644 --- a/apps/web/app/(app)/environments/[environmentId]/settings/setup/components/SetupInstructions.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/settings/setup/components/SetupInstructions.tsx @@ -42,7 +42,6 @@ if (typeof window !== "undefined") { formbricks.init({ environmentId: "${environmentId}", apiHost: "${webAppUrl}", - debug: true, // remove when in production }); }`} diff --git a/apps/web/app/api/js/route.tsx b/apps/web/app/api/js/route.tsx index 80bdd3b4e8..eb8008003b 100644 --- a/apps/web/app/api/js/route.tsx +++ b/apps/web/app/api/js/route.tsx @@ -66,9 +66,7 @@ async function handleInit(req: NextRequest) { } if (environment) { - const enableDebug = - req.nextUrl.searchParams.get("debug") === "true" || req.nextUrl.searchParams.get("debug") === "1"; - return `formbricks.init({environmentId: "${environmentId}", apiHost: "${WEBAPP_URL}", debug: ${enableDebug}});`; + return `formbricks.init({environmentId: "${environmentId}", apiHost: "${WEBAPP_URL}"});`; } } return ""; diff --git a/packages/js/index.html b/packages/js/index.html index d5dd5a0fa9..80d433d695 100644 --- a/packages/js/index.html +++ b/packages/js/index.html @@ -9,7 +9,6 @@ window.formbricks.init({ environmentId: "clsja4yzr00c1jyj8buxwmyds", apiHost: "http://localhost:3000", - debug: true, }); }, 500); })();