Stop wrangler from opening PR's in my github repo

I have two environments defined for my worker "mainnet" and "testnet", every time a build is triggered wrangler opens two PR's to my repo one to change the top level name in my wragler.jsonc to end with -mainnet and one to change it to -testnet
1 Reply
Mokacchi
Mokacchi5d ago
I had that issue before as well, and from what I understand, when you deploy a worker with an environment set, the deployed worker will have that environment as part of its name. Hence you get two completely separate entries in your dashboard when you deploy both of those environments. Taking this the other way around means that a worker that is already deployed on your account, say worker1, should also be called worker1-mainnet in your dashboard if you want to deploy that environment to it, and the other one should be called worker1-testnet. You cannot, at this time, deploy multiple environments into the same worker1 (without suffix) I think it's being worked on, but don't take that from me

Did you find this page helpful?