Deploying to ENV associated with multiple zone IDs

Question: Does the Wrangler CLI support publishing workers with multiple routes that have multiple zones associated, even when the API token has been scoped with write access to all of them? When deploying our worker with token scoped to multiple zones, the feedback is workers.api.error.zone_not_specified We are deploying like this: wrangler deploy --env ${{ inputs.ENVIRONMENT }} --config wrangler.toml
2 Replies
neenhouse (chris)
I found the answer to my own question. Routes in the wrangler.toml file need to have zone_id specified in them: https://developers.cloudflare.com/workers/wrangler/configuration/#zone-id-route
Configuration · Cloudflare Workers docs
Wrangler optionally uses a wrangler.toml configuration file to customize the development and publishing setup for a Worker.
neenhouse (chris)
I missed that part in the Wrangler v2 upgrade.
Want results from more Discord servers?
Add your server