Judge
Judge
CDCloudflare Developers
Created by Judge on 9/4/2023 in #workers-help
Is there a way to check for the environment the current worker is running in?
I ended up just making it its own variable in wrangler.
usage_model = "unbound"

[vars]

# Change Usage to 'bundled' if you cannot enable unbound for some reason (although the script works best with unbound)
USAGE_MODEL = 'unbound'
usage_model = "unbound"

[vars]

# Change Usage to 'bundled' if you cannot enable unbound for some reason (although the script works best with unbound)
USAGE_MODEL = 'unbound'
Only did this because I have a ticket open to enable unbound on one of my accounts
3 replies