Hmm, also confused about this. I just found this, looks promising
"In your Cloudflare Dashboard, you should find the two Workers my-worker-staging and my-worker-production. Then, connect the Git repository for the Worker, my-worker, to both of the environment Workers. In the build configurations of each environment Worker, edit the deploy commands to be npx wrangler deploy --env staging and npx wrangler deploy --env production and the non-production branch deploy commands to be npx wrangler versions upload --env staging and npx wrangler versions upload --env production respectively."