Configure Preview Generation per Environment
B
Brian Dumbleton
Be able to configure/scope
preview.generation
per Environment (ex. staging), rather than setting it per workspace in a render.yaml. It'd be nice to have this support in a Blueprint or through the dashboard/REST for more flexibility.Log In
j
james
Note also this other request which addresses the same need: https://feedback.render.com/features/p/disable-individual-services-in-preview-environments
B
Brian Dumbleton
james could you describe the behaviour you'd like to achieve a bit more? I may have been confused, but it seems like there are two parts to this:
- The ability to control generate.previewfor individual environments, rather than the entire workspace.
- The ability to include/exclude specific services in a preview.
Does that sound right, or did you have another idea on how you'd want to use this type of feature?
j
james
Brian Dumbleton Sure - we have our render.yaml organised with separate services for staging/prod, and so the end goal we want to get to is that we can use previews but it only creates copies of the staging services, not the production services. This could be accomplished either by splitting our services into environments and then setting
generate.preview
just for the staging environment, or it could be achieved by adding previewEnabled: true
for the staging services. So these are both aimed at achieving the same outcome, either would work.