Skip to main content

wrangler_needs_kv_materialisation

Function wrangler_needs_kv_materialisation 

Source
pub fn wrangler_needs_kv_materialisation(text: &str) -> Result<bool, String>
Expand description

Whether a generated wrangler.toml’s KV namespace id is still the deploy-time placeholder — the same condition materialise_kv_namespace_id itself checks internally before writing, exposed separately so a caller can decide whether materialising is needed at all before doing the (possibly fallible) work of finding the real id to substitute — e.g. bynk dev --remote skipping a lock-file lookup entirely for a project that either has no KV binding or is already materialised.