Skip to main content

env_qualify

Function env_qualify 

Source
pub fn env_qualify(environment: &str, name: &str) -> String
Expand description

<name> in the default environment, <name>-<environment> in any other. The suffix shape Cloudflare gives a Worker’s own deployed name under --env, so a Service Binding to it must match exactly to resolve; queues, buckets, indexes and databases follow the same shape, which keeps the resource kinds, and the mental model, consistent.