Skip to content

Intermact API Reference / @intermact/core / DEFAULT_SHARE_URL_MAX_BYTES

Variable: DEFAULT_SHARE_URL_MAX_BYTES

const DEFAULT_SHARE_URL_MAX_BYTES: 2000000 = 2_000_000

Defined in: packages/core/src/serialize/share-url.ts:56

Default maximum decoded payload size (bytes). Guards decodeShareUrl against untrusted megabyte-scale strings (DoS / accidental paste); a typical scene is a few KB. Override via DecodeShareUrlOptions.maxBytes.

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)