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

Function isV2Path

apps/cloud/src/edge/marketing.ts:95–97  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

93
94/** Whether `executor.sh` forwards a pathname to v2's Worker. */
95export const isV2Path = (pathname: string): boolean =>
96 V2_PATHS.some((pattern) => matchesPathPattern(pathname, pattern)) ||
97 isSocialCallbackPath(pathname);
98
99/** v2's marketing site on `executor.sh`, as path patterns (see
100 * {@link matchesPathPattern}): the pages, files and assets v2's marketing

Callers 2

marketing.test.tsFile · 0.90
v2EdgeResponseFunction · 0.85

Calls 2

matchesPathPatternFunction · 0.85
isSocialCallbackPathFunction · 0.85

Tested by

no test coverage detected