Cloudflare DevelopersCD
Cloudflare Developers6mo ago
3 replies
broly

Shared secrets across workers

I wanna build a monorepo of multiple workers and wondering if it's possible to provide the path to the
.dev.vars
file or its directory in the wrangler config?

Something like this:
{
  "$schema": "../../node_modules/wrangler/config-schema.json",
  "name": "react-starter",
  "secrets": "../../packages/vars"
}


This is a basic necessity to provide shared environment variables across apps. I hope it's possible. Thank you.
image.png
Was this page helpful?