Join Discord
Powered by
Hello I m trying to use the environments
# durable-objects
e
equanimityhow
05/26/2023, 8:44 PM
Hello, I'm trying to use the environments feature of wrangler for the first time and I am a bit confused as to why durable_objects bindings are not inherited (
https://developers.cloudflare.com/workers/wrangler/configuration/#non-inheritable-keys
), but durable object migrations are inherited "The migration list is an ordered array of tables, specified as a top-level key in your wrangler.toml file. The migration list is inherited by all environments and cannot be overridden by a specific environment." (
https://developers.cloudflare.com/workers/learning/using-durable-objects#durable-object-migrations-in-wranglertoml
).
equanimityhow
05/26/2023, 8:59 PM
Doesn't having the migrations be global make it so that the durable object bindings for each environment necessarily need to be the same? In which case why not make the bindings be inherited as well?
Previous
Next