It would be super useful to be able to do something like this in the
render.yaml
file:
environments:
- name: my-project-prod
previewsEnabled: false
services:
# ...
envVarGroups:
# ...
databases:
# ...
- name: my-project-staging
previewsEnabled: true
services:
# ...
envVarGroups:
# ...
databases:
# ...
It's basically "just" nesting the current content of the
render.yaml
file into the
environments
array. This would enable workflow such as having
prod
without preview environments and then having
staging
with preview environments. Workflow like that is currently impossible to achieve when I want to use infrastructure as a code.