Ah, I was also just bitten by this too!
Was very surprised that my env vars specified in an env var group with sync: false
were not synced given this line from the docs:
Render currently doesn’t support copying sync: false environment variables into preview environments unless those variables are part of an environment group.
Preview Environments | Render Docs
To me this very much made it sound like if I specified a list of env vars with sync: false
in my render.yaml
for an existing env var group, it’d “do the right thing” and automatically pick up those vars in my preview environment too.
I will try the workarounds suggested but hope it is possible to improve the default behaviour around this in the future (without breaking deploys for users whose current setup somehow relies on the current confusing default).