Environments help in wrangler
I'm having a mental block... I've got a prod env, a staging env and then all the other builds that happen from pull requests....
In wrangler, how do I make it so that builds that happen from a git build done by cloudflare build production / staging / other..... other would have the same vars/bindings as staging . 100% appreciate I'm probably forgetting something super simple....
1 Reply
Assuming that you're using GitHub Actions, you can specify the environment:
In some cases that requires custom command, can add
--env
flag (ref):
Cloudflare Docs
Commands - Wrangler · Cloudflare Workers docs
Create, develop, and deploy your Cloudflare Workers with Wrangler commands.