🚀 Feature Request: Expose readConfig
as API for programmatically use
#3897
Labels
Milestone
readConfig
as API for programmatically use
#3897
Describe the solution
When using Wrangler in combination with other development servers like Astro, it becomes necessary to read the Wrangler configuration programmatically. Currently, there's no straightforward way to do this, which makes integration cumbersome and less efficient.
I propose exposing the
readConfig
function as a programmatic API. This would allow developers to easily read the Wrangler configuration when using Wrangler programmatically in combination with other tools.wrangler.toml
file: This is error-prone and doesn't account for any internal logic that Wrangler might use to read its configuration, or any added options.This feature would be particularly useful for developers who are using Wrangler in a more complex setup, where multiple development servers or build tools are involved. For example, when using Wrangler with Astro, one could read the Wrangler config to programmatically set up proxying, environment variables, etc.
The text was updated successfully, but these errors were encountered: