How can I hide wrangler binding when deploy?
Sometimes, I want to share development status to team member, but
npx wrangler deploy command keep printing my environment.
I cannot find any related parameter at deploy command document tho, so need some help.
It's very annoying when I have to deploy at VSCode with screen sharing, so I want to hide it - If it is possible, how can I do it?5 Replies
Can you explain why you wish to hide this? Especially from your own team?
Bindings are not sensitive, they live in wrangler.toml which is committed in git.
Hello, thanks for reply.
I already know this is bad usage, but at the moment don't using CF Secret store, some of external service token is exposed at binding.
I have to use token hard-coded at wrangler.jsonc, but it's at prototype so token and feature changed often, so it's hard to say good time to use secret store for now.
You don't need to use secret store even, you can use .dev.vars + wrangler secret put for secrets
Please never put them in wrangler toml haha
Oh, is there a another feature to store private environment? Didn't know that, thanks for advice.
Cloudflare Docs
Environment variables
You can add environment variables, which are a type of binding, to attach text strings or JSON values to your Worker.