Skip to main content

worker_box_id_from_env

Function worker_box_id_from_env 

Source
pub(crate) fn worker_box_id_from_env() -> Result<String>
Expand description

Reads the box identifier required to construct the worker request subject.

Uses EXPORT_BOX_ID, falling back to BOX_ID, and passes the value through sanitize_token.

ยงErrors

Returns an error if neither variable is set (or both hold invalid Unicode).