How to define custom environment variables available in the n8n workflow

Hi @RicardoE105 ,

I am using docker and there are only Function and FunctionItem nodes can use $env.my_var, other nodes only can access {{$env.NODE_ENV}}.
Please see the image below.

Function Item node:

Other node: