ds-harness-remote-fast/packages/plugin/src/workspace-transfer-limits.ts

5 lines
248 B
TypeScript

/** Only verified direct paths receive the larger budget; unknown paths fail closed. */
export function workspaceUploadMaxBytes(mode: string | undefined): number {
return mode === 'LAN' || mode === 'P2P' ? 1024 * 1024 * 1024 : 20 * 1024 * 1024
}