Skip to content

Migrate deployment from Vercel to Cloudflare Pages with CI/CD#5

Merged
MTG-Thomas merged 1 commit intomainfrom
copilot/find-alternative-deployment-platform
Apr 1, 2026
Merged

Migrate deployment from Vercel to Cloudflare Pages with CI/CD#5
MTG-Thomas merged 1 commit intomainfrom
copilot/find-alternative-deployment-platform

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 1, 2026

Replaces manual Vercel deployment with automated Cloudflare Pages CI/CD. Merges to main now automatically test then deploy.

Summary

  • _redirects — added SPA catch-all (/* /index.html 200), replacing the vercel.json rewrite rule
  • vercel.json — deleted
  • ci.yml — added deploy job gated on test passing, runs only on main pushes via cloudflare/pages-action@v1; uses CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID, and GITHUB_TOKEN secrets
  • CLAUDE.md — replaced Vercel best-practices block with Cloudflare Pages deploy instructions and one-time setup notes

Pre-requisite (manual, one-time): create the CF Pages project (npx wrangler pages project create fieldops) and add CLOUDFLARE_API_TOKEN + CLOUDFLARE_ACCOUNT_ID as GitHub repo secrets before merging.

Testing

  • Ran npm test locally — all tests pass
  • Tested manually on fieldops-delta.vercel.app (required for any HaloPSA API changes)
  • Added or updated tests for new/changed behavior

Notes

No app code changed — purely infra/config. PWA behavior and Playwright tests are unaffected. The deploy job will silently skip on PR builds (github.event_name != 'push'), so the secrets are only required for production merges.

@MTG-Thomas MTG-Thomas marked this pull request as ready for review April 1, 2026 20:41
@MTG-Thomas MTG-Thomas merged commit 83d2071 into main Apr 1, 2026
4 checks passed
@MTG-Thomas MTG-Thomas deleted the copilot/find-alternative-deployment-platform branch April 1, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants