cdn-base
Functions
| Function | Description |
|---|---|
| prefixedCdnBase | Your project's prefixed CDN base: <prefix>.ucarecd.net, computed synchronously. Prefer this one on the server, where it uses node:crypto and costs ~0.2 kB, or anywhere awaiting is awkward — a config module's top-level export, a synchronous render path, a React Native bundle. |
| prefixedCdnBaseAsync | Your project's prefixed CDN base: <prefix>.ucarecd.net, computed with WebCrypto. A browser API — and the one to prefer there, since it adds ~0.3 kB to a bundle against ~1 kB for prefixedCdnBase, which has to carry a SHA-256 of its own to be able to return without awaiting. |
References
LEGACY_CDN_BASE
Re-exports LEGACY_CDN_BASE
PREFIX_CDN_BASE
Re-exports PREFIX_CDN_BASE