CTO
I have configured ENV vars via the App Platform UI for my new Worker component. The ENV vars were not loaded in on the Build stage of the Worker component.
It looks like these ENV vars do not get the default BUILD_AND_RUN_TIME scope. The “scope” key is non-existent if I inspect my Appspec via doctl. I had to manually add the “scope” key in my Worker component to make the Worker build work.
This is a bit confusing because the UI where you can manage ENV vars for Worker components also describes that the ENV vars will be added to the Build and Runtime stage.
This might be a bug or intentional. But if intentional, the ENV var management UI for Workers is a bit off.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey Michiel! Thanks for flagging this. It’s definitely a bug—we’ll get it fixed as soon as possible!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.