Import packages/plugin/src/workspace-transfer-limits.ts
This commit is contained in:
parent
4419bf2a10
commit
022a5c275c
|
|
@ -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
|
||||
}
|
||||
Loading…
Reference in New Issue