The doc says: "any vars key are exposed as global variables", but they are not

I want to define something like DEV=true to detect dev mode (followed by some different initiating path), but access variable "DEV" in top level code just cause: "ReferenceError: DEV is not defined".
Is this a misunderstanding of the doc? I'm confused, the doc is in https://developers.cloudflare.com/workers/wrangler/environments/#staging-and-production-environments
image.png
image.png
image.png
Cloudflare Docs
Deploy the same Worker application with different configuration for each environment.
Was this page helpful?