@mxbck @Netlify I think that defining an environment variable in contexts in your netlify.toml might get you what you need.
Note: these override values added via the UI.
docs 👉 https://docs.netlify.com/site-deploys/overview/?utm_source=twitter&utm_medium=support-pnh&utm_campaign=devex#deploy-contexts