Is it possible to set a value in render.yaml that will set the environment variable, but only on production and not preview environments?
I thought that this would do that
- key: MY_ENV
value: "some_value"
sync: false
But it results in this warning
services[0].envVars[8]
cannot simultaneously specify fields value and sync
Not that this is not equivalent:
- key: MY_ENV
value: "some_value"
previewValue: null
Because then in preview environments MY_ENV
is set to ""
which is different than not being set.