not sure where to pos tthis but please

not sure where to post this but please... 1. can we please allow upload .env directly for build variables ? it is annoying we have to upload one by one thorugh the ui ( regular env var seems like support pasting dotenv) - when using sveltekit we have to provide them for build .. and i think in pages, all env variables are also used as build variables 2. is there an max limit for build variable for workers ? once my build var reach 50+ i got Initializing build environment... internal error occurred. Please retry your build. If this problem persists, contact Cloudflare support.
4 Replies
James
James•4w ago
wrangler secret bulk .dev.vars (etc.) might solve #1 for you, if you have the same secrets in dev vs prod For 2. if you go down to 49 vars it works, but anything 50+ and it internal errors, every time?
BumblebeeSquare
BumblebeeSquareOP•4w ago
i think also depends on size, if i have 49, but increased the value , it also throws if im able to save the variable then it should work 😦 secret bulk is only for secret it seems and not build time, i want to bulk upload build var Configure the variables and secrets for your Worker used during the build.
James
James•4w ago
you're right. I believe at one point you could upload the .env into the dash and it'd popualte them all, but I'm not sure if that's still a thing
BumblebeeSquare
BumblebeeSquareOP•4w ago
yes we can *upload *but it is not for build time envs - it is also very unintuitive , you have to paste your .env into an input tag... why not make a big box like an advanced mode 😦

Did you find this page helpful?