npx wranger token permission for automated deployment
Hello everyone,
I'm trying to deploy a Cloudflare Pages site using a Bitbucket pipeline. I've set everything up (CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_API_TOKEN) and am running the following command:
npx --yes wrangler@latest pages deploy /dist/
npx --yes wrangler@latest pages deploy /dist/
However, I'm encountering an issue with token permissions. I'm using a token with the "Edit Cloudflare Workers" template, but it doesn't seem to have sufficient permissions for the deployment. I haven't been able to find more information on the required permissions for this process.
Has anyone experienced this issue or knows what specific permissions I should be using? Any help would be greatly appreciated!