Added vars through wrangler.toml was not added to dashboard secrets

This is a pages project. I added a var to [vars] in my wrangler.toml and when I merged my PR it was not automatically added to my secrets in the dashboard settings. Yesterday I merged a PR with vars added to wrangler.toml and they were automatically added to secrets. Should note that the new var which was not added is a number, which worked fine in development. I will try making it a string in wrangler.toml but this is odd behavior, if someone could explain.
2 Replies
AlanB
AlanBOP7d ago
When i add the var as a string, it is added to the dashboard secrets as expected
Hard@Work
Hard@Work7d ago
Can you post your entire wrangler.toml? Also, vars are Environment Variables, not secrets

Did you find this page helpful?