Access environment variables in expression problem

Hi,
I know this topic has been created already but it seems it’s not working for me. Here is the situtation:

I run n8n locally, but execute the workflow in production mode (I Activated the workflow and run it with webhook production url) but for example this: {{$env[“DB_TYPE”]}} would show [not found].

Is it because I’m running the n8n locally or something else is happening here?

Hi @jellybean, I hope you’re well? I just tried this on my local n8n instance but didn’t run into a problem, neither when manually executing n8n nor when running in production mode.

This is the test workflow I had set up:

Example Workflow

Is there are chance you haven’t set the DB_TYPE env variable (it is optional after all)?