Skip to main content

resolve_prefixed_var

Function resolve_prefixed_var 

Source
pub fn resolve_prefixed_var(prefix: &str, suffix: &str) -> String
Expand description

Resolves {prefix}_{suffix}, falling back to unprefixed MICROMEGAS_{suffix} when the prefixed name is unset, or always when prefix is empty.

suffix is passed without the MICROMEGAS_ prefix (e.g. "OIDC_CONFIG", "DEFAULT_AUDIENCE").