Skip to content

🚀 Feature Request: Add environment variable for --cf-fetch / --no-cf-fetch #3659

@leighmcculloch

Description

@leighmcculloch

Describe the solution

Miniflare, and wrangler as a result, create a node_modules/.mf/cf.json file automatically, which is a really odd experience in non-Javascript projects.

The --cf-fetch / --no-cf-fetch option exists on Miniflare, but there's no way that I can tell to control that from Wrangler.

On my system I'd love to be able to set an environment variable and either disable the writing of the file, or set the path to somewhere else on my system, so that it applies to all my projects without having to manually set it with Miniflare, and so that Wrangler when running Miniflare picks it up too.

This issue of the node_modules being created was previously discussed in cloudflare/miniflare#143 (@lookfirst).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestminiflareRelating to Miniflarequick winPotentially easy/straightforward issue to tackle

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions