Cloudflare DevelopersCD
Cloudflare Developers•16mo ago•
4 replies
Paul

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
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.
Projects Overview
Was this page helpful?