MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isDocsPath

Function isDocsPath

apps/cloud/src/edge/passthrough.ts:48–49  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

46const tracer = trace.getTracer("executor-cloud-docs-proxy");
47
48export const isDocsPath = (pathname: string): boolean =>
49 pathname === "/docs" || pathname.startsWith("/docs/");
50
51export const isPosthogPath = (pathname: string): boolean =>
52 pathname === POSTHOG_PROXY_PATH || pathname.startsWith(`${POSTHOG_PROXY_PATH}/`);

Callers 4

docs.tsFile · 0.90
passthroughResponseFunction · 0.85
docs.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected