Skip to main content

vectorize_index_name

Function vectorize_index_name 

Source
pub fn vectorize_index_name(worker: &str, binding: &str) -> String
Expand description

#3479: the account-facing name of a Vectorize instance’s index, <worker>-<capability> in kebab case: shop-cart and VECTORIZE_DOCS give shop-cart-docs. Cloudflare takes a kebab-cased name of at most 64 bytes, so a name longer than that, less room for the environment suffix, keeps its head and ends in a hash of the whole name (the same inputs always give the same name). bynk deploy environment-qualifies it (shop-cart-docs-staging).