docs: remove old debug functionality (#2212)

This commit is contained in:
Shubham Palriwala
2024-03-11 15:51:55 +05:30
committed by GitHub
parent 5cce4a1db4
commit 5aebde79e7
4 changed files with 1 additions and 8 deletions

View File

@@ -99,7 +99,6 @@ if (typeof window !== "undefined") {
formbricks.init({
environmentId: "<environment-id>",
apiHost: "<api-host>",
debug: true, // remove when in production
});
}
@@ -182,7 +181,6 @@ useEffect(() => {
formbricks.init({
environmentId: "<environment-id>",
apiHost: "<api-host>",
debug: true, // remove when in production
});
}, []);
@@ -232,7 +230,6 @@ if (typeof window !== "undefined") {
formbricks.init({
environmentId: "<environment-id>",
apiHost: "<api-host>",
debug: true, // remove when in production
});
}

View File

@@ -42,7 +42,6 @@ if (typeof window !== "undefined") {
formbricks.init({
environmentId: "${environmentId}",
apiHost: "${webAppUrl}",
debug: true, // remove when in production
});
}`}</CodeBlock>

View File

@@ -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 "";

View File

@@ -9,7 +9,6 @@
window.formbricks.init({
environmentId: "clsja4yzr00c1jyj8buxwmyds",
apiHost: "http://localhost:3000",
debug: true,
});
}, 500);
})();