File size: 497 Bytes
5f40163
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { http, HttpResponse } from "msw";

// Block both the direct PostHog ingestion endpoint and the OpenHands reverse
// proxy (z.openhands.dev) used by the library telemetry service so mock-mode
// builds never send analytics events to PostHog.
export const ANALYTICS_HANDLERS = [
  http.post("https://us.i.posthog.com/e", async () =>
    HttpResponse.json(null, { status: 200 }),
  ),
  http.post("https://z.openhands.dev/*", async () =>
    HttpResponse.json(null, { status: 200 }),
  ),
];