wrangler config env queues not working

Issue documented here https://github.com/cloudflare/workers-sdk/issues/4351. I created the issue whilst Discord was failing to laid.
GitHub
Issues · cloudflare/workers-sdk
⛅️ Home to Wrangler, the CLI for Cloudflare Workers® - Issues · cloudflare/workers-sdk
5 Replies
kian
kian7mo ago
This is a quirk of TOML - tables don't inherit tables and a table is the [foo] and [[foo]] syntax. You want to declare it like [[env.dev.queues.producers]]
jasonkuhrt
jasonkuhrt7mo ago
wow Thanks @kian that indeed seems to work
kian
kian7mo ago
Alternatively you could do
[env.dev]
queues.producers = [
{ queue = "foo", binding = "bar" },
{ queue = "baz", binding = "qux" }
]
[env.dev]
queues.producers = [
{ queue = "foo", binding = "bar" },
{ queue = "baz", binding = "qux" }
]
or
[env.dev.queues]
producers = [
{ queue = "foo", binding = "bar" },
{ queue = "baz", binding = "qux" }
]
[env.dev.queues]
producers = [
{ queue = "foo", binding = "bar" },
{ queue = "baz", binding = "qux" }
]
jasonkuhrt
jasonkuhrt7mo ago
Ok
kian
kian7mo ago
You get the idea - TOML has two ways of declaring a table (and array of tables) and only one of them has inheritance.