You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in the process of updating a Wrangler 1 project that uses Worktop next with Wrangler 2 and can't figure out how to access entries in my .env file.
Previously, I used miniflare and passed the --env flag. E.g.
miniflare --env '.env'
Wrangler 2 does not support Miniflare commands directly. Reading this, it seems that perhaps Worktop should be passing a second env argument to the handler but it's not. Any ideas?
The text was updated successfully, but these errors were encountered:
Hi there, worktop doesn’t interact with env files at all. That is entirely reliant upon wrangler and/or miniflare. That said, wrangler 2 should have (or soon have) restored .env file support: cloudflare/workers-sdk#882
I'm in the process of updating a Wrangler 1 project that uses Worktop next with Wrangler 2 and can't figure out how to access entries in my
.env
file.Previously, I used miniflare and passed the
--env
flag. E.g.Wrangler 2 does not support Miniflare commands directly. Reading this, it seems that perhaps Worktop should be passing a second
env
argument to the handler but it's not. Any ideas?The text was updated successfully, but these errors were encountered: