File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,14 @@ export class Config {
11
11
constructor (
12
12
public readonly browserstackUsername : string ,
13
13
public readonly browserstackAccessKey : string ,
14
+ public readonly DEV_MODE : boolean ,
14
15
) { }
15
16
}
16
17
17
18
const config = new Config (
18
19
process . env . BROWSERSTACK_USERNAME ! ,
19
20
process . env . BROWSERSTACK_ACCESS_KEY ! ,
21
+ process . env . DEV_MODE === "true"
20
22
) ;
21
23
22
24
export default config ;
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ export function trackMCP(
20
20
clientInfo : { name ?: string ; version ?: string } ,
21
21
error ?: unknown ,
22
22
) : void {
23
+
24
+ if ( config . DEV_MODE ) {
25
+ logger . info ( "Tracking MCP is disabled in dev mode" ) ;
26
+ return ;
27
+ }
28
+
23
29
const instrumentationEndpoint = "https://api.browserstack.com/sdk/v1/event" ;
24
30
const isSuccess = ! error ;
25
31
const mcpClient = clientInfo ?. name || "unknown" ;
You can’t perform that action at this time.
0 commit comments