Cloudflare DevelopersCD
Cloudflare Developers7mo ago
4 replies
Jacob

Workers with Secrets Store Secrets - Production Config

If you try to nest secrets store secrets like this in wranglers jsonc:

{
  "env": {
    "production": {
      "secrets_store_secrets": []
    }
  }
}


Then the bindings are not in the UI of the worker on the bindings page. The problem is in dev we have the same var names. so if we don't nest them as production in the jsonc file then the dev.vars conflict with the secrets store secrets namespace. What is the best advice on how to work with dev vs production with secrets store secrets???
Was this page helpful?