2026 Best Practices for Variables and Environment Variables

Hi All,

I’m currently doing some Tech Debt clean up and wanted to see what the modern way to manage environment variables across different scopes is. I came across this documentation guide but it’s a little bit hard to parse because more then half of the functions are deprecated. Is there any chance that something like root.var(“MY_VAR”) will ever get totally phased out and deprecated?

Almost always I’m using global env variables as opposed to needing Component based variables(though maybe I can just set a Component Variable for /, which would in effect become a global variable). Either way I think it could be helpful to have some more clarity in the Docs on what is recommended vs dissuaded. Curious what the Dev team thinks.

Thanks!