MCPcopy Index your code
hub / github.com/anomalyco/opencode / isDataBypassPath

Function isDataBypassPath

packages/console/app/src/lib/stats-proxy.ts:94–102  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

92}
93
94function isDataBypassPath(pathname: string) {
95 return (
96 pathname.startsWith(`${dataPath}/_build/`) ||
97 pathname.startsWith(`${dataPath}/api/`) ||
98 pathname.startsWith(`${dataPath}/_server`) ||
99 pathname === `${dataPath}/banner.jpg` ||
100 pathname === `${dataPath}/banner.png`
101 )
102}
103
104function appendVary(headers: Headers, ...values: string[]) {
105 const existing = headers

Callers 1

redirectToLocalizedDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected