Quick Answer
Go to Cloudflare Dashboard → Pages → your project → Settings → Git repository → Manage and reinstall the GitHub integration. This resolves most disconnection issues in under 2 minutes.
Symptoms
Git push does not trigger a deployment on Cloudflare Pages. One of the following warning banners appears in the Deployments tab:
This project is disconnected from your Git account, this may cause deployments to fail.Cloudflare Pages is not properly installed on your Git account, this may cause deployments to fail.The Cloudflare Pages installation has been suspended, this may cause deployments to fail.The project is linked to a repository that no longer exists, this may cause deployments to fail.The repository cannot be accessed, this may cause deployments to fail.There is an internal issue with your Cloudflare Pages Git installation.
Fix by Error Message
”This project is disconnected from your Git account”
The most common error. The OAuth token between Cloudflare and GitHub has expired or been revoked.
Steps:
- Open your project in the Cloudflare dashboard
- Go to Settings → Git repository → Manage
- Click Uninstall to remove the current GitHub app installation
- Click Install again and re-authorize Cloudflare Pages on GitHub
- Push an empty commit to verify the connection:
git commit --allow-empty -m "reconnect cloudflare"
git push
“The Cloudflare Pages installation has been suspended”
Someone manually suspended the Cloudflare Pages app in GitHub settings.
Steps:
- Open GitHub installation settings:
- Personal account:
https://github.com/settings/installations - Organization:
https://github.com/organizations/YOUR_ORG/settings/installations
- Personal account:
- Find Cloudflare Pages and click Configure
- Scroll to the bottom and click Unsuspend
- Return to Cloudflare dashboard and push a new commit
”The repository cannot be accessed”
Cloudflare Pages no longer has read access to the specific repository — usually because the GitHub App’s repository scope was changed.
Steps:
- Go to GitHub installation settings (same URLs as above)
- Click Configure on Cloudflare Pages
- Under Repository access, switch to All repositories or manually add the missing repo
- Save and redeploy
”The project is linked to a repository that no longer exists”
The GitHub repository was deleted or transferred to another account.
If deleted: Create a new Cloudflare Pages project pointing to a new repository.
If transferred:
- Option A: Transfer the repository back to the original account
- Option B: Delete the current Pages project and create a new one pointing to the new repository location
”There is an internal issue with your Cloudflare Pages Git installation”
An internal Cloudflare error. Uninstall and reinstall the GitHub app first. If that does not work, contact Cloudflare support.
GitHub/GitLab is having an incident
No action needed on your end. Monitor GitHub Status or GitLab Status and retry once the incident is resolved.
Environment
- Cloudflare Pages
- GitHub (also applies to GitLab)
- Any frontend framework (Astro, Next.js, React, etc.)
How to Force a Deployment Without Code Changes
If you need to trigger a build immediately after reconnecting:
git commit --allow-empty -m "force deploy"
git push
Or use the Cloudflare dashboard: Deployments → Create deployment → Deploy without code changes.
Prevention
| Scenario | Prevention |
|---|---|
| Token expiry | Check the Deployments tab after any GitHub permission change |
| Suspended installation | Avoid touching GitHub App settings unless necessary |
| Deleted repo | Always disconnect Cloudflare Pages before deleting a repo |
If a deployment is not reflected, always check the Deployments tab logs first before assuming a GitHub disconnect. For log reading tips, see How to Read Cloudflare Pages Build Logs and Fix Errors.
FAQ
Q: Why does Cloudflare Pages disconnect from GitHub? The most common causes are token expiry, manually revoking app permissions in GitHub, or suspending the Cloudflare Pages GitHub App installation.
Q: How do I reconnect Cloudflare Pages to GitHub? Go to Cloudflare Dashboard → your Pages project → Settings → Git repository → Manage → Uninstall, then reinstall and re-authorize.
Q: My git push still doesn’t trigger a deployment after reconnecting.
Push an empty commit (git commit --allow-empty -m "test" && git push) to force a deployment check. If that fails, check that your branch name matches the production branch in Settings.
Q: Does this also apply to GitLab?
Yes. The reconnection steps are the same — go to GitLab installation settings at https://gitlab.com/-/profile/applications instead.
Related Articles
- Cloudflare Pages GitHub Auto-Deploy Not Working: How to Fix It
- How to Read Cloudflare Pages Build Logs and Fix Errors
- How to Deploy Astro to Cloudflare Pages
- Full Steps to Set an Xserver Domain as a Cloudflare Pages Custom Domain
Recommended Services
- Fiverr - Find freelance developers and tech experts