Rollback Reference
This page covers how to rollback a Cloudflare Pages deployment and revert DNS if needed.
Rollback a Cloudflare Pages Deployment
Cloudflare Pages retains all previous deployments. A rollback is instant — DNS already points to Pages, and switching the production deployment is atomic.
Steps
- Navigate to the Cloudflare Dashboard → Pages → solidiom → Deployments.
- Find the previous working deployment. You can identify it by:
- Git commit SHA
- Deployment timestamp
- Branch name
- Click on the deployment and select “Retry deployment” or “Rollback to this deploy”.
- Verify the site at
https://solidiom.orgis serving the correct version.
Rollback via API
For automated rollback, use the Cloudflare API:
# List recent deployments
curl -X GET "https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/pages/projects/solidiom/deployments" \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
# Promote a specific deployment to production
curl -X POST "https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/pages/projects/solidiom/versions/$DEPLOYMENT_ID/restore" \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"Identifying a Broken Deployment
- Check the deployment list for the git SHA that was pushed when the issue started.
- Cloudflare Pages marks failed builds with a red indicator.
- If the build succeeded but the site is broken, compare the deployment timestamp with when the issue was reported.
Revert DNS
In the unlikely event that DNS changes need to be reverted:
- Navigate to Cloudflare Dashboard → solidiom.org → DNS.
- Revert any CNAME or A record changes.
- Cloudflare’s global DNS typically propagates within 60 seconds.
Current DNS Records
| Record | Type | Value | Proxy |
|---|---|---|---|
solidiom.org | CNAME | solidiom.pages.dev | Yes |
www.solidiom.org | CNAME | solidiom.pages.dev | Yes |
Contact Procedures
If a rollback is needed:
- Perform the rollback immediately (don’t wait for root cause analysis).
- Open a GitHub Issue documenting:
- What broke
- Which deployment was rolled back from/to (include SHA)
- What triggered the rollback
- If the issue is security-related, follow the process in
SECURITY.md.
Prevention Checklist
Before any production deployment:
-
pnpm exec nx run @solidiom/site:buildsucceeds locally -
pnpm exec nx run @solidiom/site:search-indexproduces output - No new type errors or build warnings
- Preview deployment reviewed and functional
- Security headers verified on preview