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
kian13mo 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
jasonkuhrtOP13mo ago
wow Thanks @kian that indeed seems to work
kian
kian13mo 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
jasonkuhrtOP13mo ago
Ok
kian
kian13mo ago
You get the idea - TOML has two ways of declaring a table (and array of tables) and only one of them has inheritance.
Want results from more Discord servers?
Add your server