Import packages/plugin/src/workspace-transfer-limits.ts

This commit is contained in:
QQ 2026-11-14 14:58:33 +08:00
parent 4419bf2a10
commit 022a5c275c
1 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,4 @@
/** 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
}