resolveSlot
function resolveSlot(slotKey, opts?): Promise<SlotResolution>;Defined in: packages/asset-client/src/slots.ts:132
Resolve a single slot to a CDN URL. Returns {slot: null, url: null}
when the slot is unbound — callers fall back to a placeholder.
Cached for ttlMs (default 60s). Slot rebindings propagate within the
TTL window without an app restart.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
slotKey |
string |
opts |
ResolveSlotOptions |
Returns
Section titled “Returns”Promise<SlotResolution>