miniflare icon indicating copy to clipboard operation
miniflare copied to clipboard

Add `[miniflare.vars]` to `wrangler.toml`

Open jed opened this issue 2 years ago • 1 comments

I would love to be able to add environment variables for local development in the same place as those for production (in wrangler.toml), instead of .env special-casing.

jed avatar Jan 20 '22 04:01 jed

Hey! 👋 Great suggestion! Something similar was mentioned a while back in the Cloudflare Workers Discord server but for a different key. It might be useful if any option could be defined under [miniflare], kinda like an implicit auto-loaded environment just for local development.

mrbbot avatar Jan 27 '22 19:01 mrbbot

Hey! 👋 I'm going to close this issue as Miniflare 3 no longer reads from wrangler.toml files. It's unlikely we'll have time to fix this in Miniflare 2. Our development effort is primarily focused on version 3.

mrbbot avatar Nov 07 '23 15:11 mrbbot