My Worker isn't finding my secrets

as the title says the worker isn't finding my secret and I've tried global variables and I've used SECRET_STORAGE.get() neither time has it found my secrets. I haven't deployed the worker but the secret is shown when the command $ wrangler secret list is used. I attached a pic of my code.
No description
4 Replies
kian
kian11mo ago
Neither SECRET_STORAGE.get() or await GLOBAL; are how you access secrets in Cloudflare Workers Where did you get those from? Also, https://developers.cloudflare.com/workers/configuration/secrets/#secrets-in-development
Darkardon
DarkardonOP11mo ago
from a google search
Darkardon
DarkardonOP11mo ago
thanks
Want results from more Discord servers?
Add your server