I have a feature request for Cloudflare Pages.
I want multiple environment support to add a staging environment to my Cloudflare Pages website.
- I want to associate the main branch to the staging environment (i.e. when I push to main, the code on the main branch should be deployed to the staging environment.), and the production branch to the production environment.
- I want to associate domains to both staging and production. (e.g. example.com for production, and example.net for staging)
If you develop a project with a single developer, testing on the feature branch is enough, but if you collaborate with two or more developers, the website might be broken when you merge your pull request and the other developers’ PR. To avoid that, the staging environment is necessary for projects with multiple developers.
I appreciate your consideration.