Workers for Platforms how to create a User Worker Secrets

For Workers & Pages, what is the name of the domain?

*.example.com

What is the issue or error you’re encountering

I have setup my workers for platforms using this guide Configure Workers for Platforms · Cloudflare for Platforms docs Setting up User Worker, dispatch namespace and dynamic dispatch Worker. I am trying to create a Secret for my User Worker. Though from my worker directory I run: npx wrangler secret put MY_KEY --name=my-worker Then I am prompted to create a new worker named my-worker. My guess is that my context isn’t the dispatch namespace where I have deployed my User Worker. So the secret command tries to create my secret in the “Workers” scope and not “Workers for platforms”. Is there a way to create a secret for my User Worker that is deployed in my dispatch namespace?

In order to create secrets for each User Worker or script you will need to use the api.
Currently I haven’t found a way to do it from the wrangler.jsonc or CF dashboard.
Follow this link:

This topic was automatically closed after 15 days. New replies are no longer allowed.