This is my own workaround for the missing ENV variable support in Checkout UI / POS extensions:
In short, this CLI tool reads your current environment can creates a shimmed variables file that is read by your extension. Then in your CI/CD you can run this same tool to replace the config file with your production ENV variables: