mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-26 03:35:38 -05:00
docs: remove old debug functionality (#2212)
This commit is contained in:
committed by
GitHub
parent
5cce4a1db4
commit
5aebde79e7
-1
@@ -42,7 +42,6 @@ if (typeof window !== "undefined") {
|
||||
formbricks.init({
|
||||
environmentId: "${environmentId}",
|
||||
apiHost: "${webAppUrl}",
|
||||
debug: true, // remove when in production
|
||||
});
|
||||
}`}</CodeBlock>
|
||||
|
||||
|
||||
@@ -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 "";
|
||||
|
||||
Reference in New Issue
Block a user