API to set worker environment variable?
Hey folks,
I'm looking for an HTTP API to set a Worker's environment variable. Digging into Wrangler, another member of the community found this for secrets:
/accounts/account_id/workers/scripts/script_name/secrets
https://github.com/cloudflare/workers-sdk/blob/main/packages/wrangler/src/secret/index.ts#L170-L185
But I'm not sure if it can apply to regular plain text env vars, and am not finding anything else documented anywhere.
I'm looking for an HTTP API to set a Worker's environment variable. Digging into Wrangler, another member of the community found this for secrets:
/accounts/account_id/workers/scripts/script_name/secrets
https://github.com/cloudflare/workers-sdk/blob/main/packages/wrangler/src/secret/index.ts#L170-L185
But I'm not sure if it can apply to regular plain text env vars, and am not finding anything else documented anywhere.
GitHub
Home to Wrangler, the CLI for Cloudflare Workers® - cloudflare/workers-sdk