Secret text directly supported by wrangler
I want to have some secrets in my wrangler.jsonc file and have them when deployed.
When adding secrets this way, it successfully deploys along with the secrets
However I get a warning message stating
My question is, if i want to have secrets in my
wrangler.jsonc, what is the proper way to do it while avoiding warnings? I dont see anything relevant in the json schema.
https://unpkg.com/wrangler@4.14.4/config-schema.json2 Replies
You shouldn't have secrets in wrangler config, you are meant to commit wrangler config and shouldn't have anything sensitive in there.
Secrets should be added through
wrangler secret putThat one could be a var, I have like 10 other ones that are api keys but just didn't include them in the message