Skip to content

Cloudflare deployment / pr preview#106

Draft
asyncawaitpromise wants to merge 1 commit intomainfrom
dev/cf-pr-previews
Draft

Cloudflare deployment / pr preview#106
asyncawaitpromise wants to merge 1 commit intomainfrom
dev/cf-pr-previews

Conversation

@asyncawaitpromise
Copy link
Member

@asyncawaitpromise asyncawaitpromise commented Mar 24, 2026

Summary

Replaces the GitHub Pages production deploy with Cloudflare Pages, and adds automatic PR preview deployments.

Every PR targeting main will now get a Cloudflare Pages preview deployed on each push, with a comment posted automatically containing the preview URL. The comment updates in place as new commits are pushed.

On merge to main, the same workflow deploys to the production Cloudflare Pages project after running Supabase migrations.

All workflow actions are pinned to SHA for supply chain security.

Cloudflare Pages docs

https://developers.cloudflare.com/pages

Secrets required

Two secrets need to be added to the repo before this works.

CF_API_TOKEN: a Cloudflare API token with Cloudflare Pages Edit permission
CF_ACCOUNT_ID: your Cloudflare account ID, found in the Cloudflare dashboard sidebar

A Pages project named devx-network also needs to exist in Cloudflare. Create it as a Direct Upload project so it does not try to connect to Git directly.

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.

1 participant