Assigning Environments to Custom Domains #4062
-
The new Environments feature is a great step towards managing production/staging environments under a single project, but I think it can be taken one step further. When using the git integration, it's implied that the production environment is only used for the "default" branch. Problem is, our default branch is actually the staging branch, and we deploy to prod when merging to master. We have the ability to assign domains to specific git branches, but we have no way of controlling which environment is used on that branch. What I'd love to be able to accomplish is the following:
I could see how assigning multiple domains to a single branch, with different environments, could pose issues for Zeit's deployment model where a domain is simply assigned to a deployment. This would effectively require two builds to be made for the same commit. One alternative that would allow us to accomplish the same thing: allow connecting two projects to the same git project. We would still need to be able to assign environments to domains, but would not need ability to assign multiple domains to same branch. Then we could create a web-prod and web-staging project and connect both of them to git. Assuming deploy hooks fire to both projects, we would accomplish running two deploys for the same commit. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey @AndrewBarba, thanks for providing such detailed feedback, much appreciated! We've been gathering feedback on use cases and the 'staging' environment is something that we are looking at currently. As the multiple environments support progresses further we'll be sure to take this into account and find ways to support more use cases by providing greater flexibility. |
Beta Was this translation helpful? Give feedback.
Hey @AndrewBarba, thanks for providing such detailed feedback, much appreciated! We've been gathering feedback on use cases and the 'staging' environment is something that we are looking at currently. As the multiple environments support progresses further we'll be sure to take this into account and find ways to support more use cases by providing greater flexibility.