Is there a way to check for the environment the current worker is running in?

Since the limit on subrequests is different depending on whether the worker is running in Bundled vs Unbound, it would be useful if there were a way to check if the worker is running in Unbound mode or Bundled mode. Is this already possible (Ideally not looking to use the Cloudflare API)?
2 Replies
Hello, I’m Allie!
There is not
Judge
JudgeOP15mo ago
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
Want results from more Discord servers?
Add your server