Where to put the build variables in my wrangler.jsonc ?

I have some variables I need at build time and I have now set them in the dashbaord (see the screenshot; they're public, don't worry) but it says that I should update my wrangler.jsonc - but WHERE? I looked through the docs and I can't find where to put those variables... here is my complete wrangler.jsonc: https://github.com/supportmailapp/website/blob/main/wrangler.jsonc
No description
6 Replies
Hard@Work
Hard@Work•5mo ago
Cloudflare Docs
Configuration
Use a configuration file to customize the development and deployment setup for your Worker project and other Developer Platform products.
LukeZ
LukeZOP•5mo ago
well... I did add it there and my build still failed because the env variables was missing. 0.o
LukeZ
LukeZOP•5mo ago
It only worked after I set that in the dashboard there. Note that I had already set those variables above.
No description
Walshy
Walshy•5mo ago
Build variables cannot be set in wrangler config today.
Hard@Work
Hard@Work•5mo ago
Ah darn it, missed that you said build variables, sorry!
LukeZ
LukeZOP•5mo ago
yikes no worries, I'm tired too. I will go to bed now 😄 thanks guys, have a great day!

Did you find this page helpful?