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.
4 Replies
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-developmentfrom a google search
I'd recommend looking at https://developers.cloudflare.com/workers/configuration/environment-variables/
thanks