Ignore build step

Hi All 👋 I have a two cloudflare pages project setup on the same github repository to seperate environments with automated deployments. - acme-production (branch main) - acme-staging (branch develop) Is there a way with cloudflare pages that I can ignore preview/production deployments based on my target branch? For example; 1. when I push to main it should only deploy production for acme-production, when I open a pull request with target branch as main it should deploy a preview on acme-production but not on acme-staging. 2. when I push to develop it should deploy a production for acme-staging, when I open a pull request with target branch as develop it should start a preview for acme-staging but not for acme-production. I'm looking for something in cloudflare pages similar to vercel ignore build step: https://vercel.com/docs/projects/overview#ignored-build-step
Projects Overview
To deploy on Vercel, you need to create a Project, which groups deployments and custom domains. Learn how to set up and configure projects with this guide.
1 Reply
Walshy
Walshy•6d ago
Very specific situation here, any reason to not just use 1 project? What I'd just do is acme-production production branch main - this means main will be production and rest previews you could then do acme-staging with develop as production branch and maybe you want to ignore the rest? if so, you can use build watch paths if Git if using external CI then this should be simple to handle within the CI itself
Want results from more Discord servers?
Add your server