Open threepointone opened 2 years ago
💯
I think the thing to do here, is field by field, make sure args values are being read and applied into the Config object
I started doing something like this with envName
which I think could be a reference for how we could
Hey! 👋 We're hoping to solve a lot of these problems with the current Wrangler-as-a-library work we're doing. Specifically, we're planning to extract configuration handling into an isolated ConfigController
component, that handles the merging of config between API options (or CLI flags), and the wrangler.toml
file. This will allow us to standardise how we consolidate these options in the next major version. 👍
There's a bit of tension in the way we read "configuration" right now.
wrangler.toml
file via thereadConfig()
function, which returns aConfig
object.