MCPcopy
hub / github.com/t3-oss/t3-env / isServerAccess

Function isServerAccess

packages/core/src/index.ts:378–381  ·  view source on GitHub ↗
(prop: string)

Source from the content-addressed store, hash-verified

376 }
377
378 const isServerAccess = (prop: string) => {
379 if (!opts.clientPrefix) return true;
380 return !prop.startsWith(opts.clientPrefix) && !(prop in _shared);
381 };
382 const isValidServerAccess = (prop: string) => {
383 return isServer || !isServerAccess(prop);
384 };

Callers 1

isValidServerAccessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected