I am feeding the URL to my backend API as an envvar into my frontend. Ideally, I would like this envvar to be a constant value (my custom domain) in production, and a derived value (the RENDER_EXTERNAL_URL of the backend) in preview. However, as far as I can tell this is not possible.
I currently have this working by passing in two envvars and having my vue config figure it out, but it would be convenient if this was not necessary.