Deploy to Cloudflare button doesn't work
https://developers.cloudflare.com/workers/tutorials/deploy-button/
When I try clicking on the button shown in this page or any "Deploy to Cloudflare" button, the dashboard shows error dialog.
Cloudflare Docs
Create a deploy button with GitHub Actions · Cloudflare Workers docs
Deploy buttons let you deploy applications to Cloudflare's global network in under five minutes. The deploy buttons use Wrangler to deploy a Worker using the Wrangler GitHub Action. You can deploy an application from a set of ready-made Cloudflare templates, or make deploy buttons for your own applications to make sharing your work easier.
8 Replies
What button/repo are you trying to use?
GitHub
GitHub - kumardeo/blogger-pwa: ✨ Build a PWA for your Blogger Sit...
✨ Build a PWA for your Blogger Site (supports blogspot.com subdomain) - kumardeo/blogger-pwa
Someone tried to fork it but he failed, I am also facing the same issue.
Does it attempt to clone the repository? Do you see a build started for it?
No, it doesn't do anything.
I'm able to import a new project from your button (though it fails in Cloudflare dash later for different reasons)
You mentioned
the dashboard shows error dialog.
Can you share the error details? What's the page you're on when the error occurs? Anything intetesting in the network tab?In console it shows:
TypeError: Cannot read properties of undefined (reading 'length')
Probably permissionGroups.length
No fetch errors in networks tab
Earlier (when button style was different), no such issues were faced + we were able to deploy multiple workers using --config option but now it strictly asks the repo to have wrangler.json(c), wrangler.toml
What's the page you're on when the error occurs?https://dash.cloudflare.com/d86e41cfc1f52b86827790972d55d1b3/workers-and-pages/create/deploy-to-workers?repository=https%3A%2F%2Fgithub.com%2Fkumardeo%2Fblogger-pwa As soon as I click on deploy to Cloudflare and dashboard loads.