My automatic builds don't use my environment variables
Unanswered
Giant Chinchilla posted this in #help-forum
Giant ChinchillaOP
I always have to rebuild my automatic builds after a git push. Otherwise my project gets build with no environment variables.
31 Replies
Giant ChinchillaOP
I don't see any errors min my build logs
SharpieMaster
Are you using vercel?
Giant ChinchillaOP
Yes sir
SharpieMaster
You can select your project, then deployments and settings
There you can change and set your desired environment variables
As I think that the .env is not loaded when building in vercel
Interesting
Giant ChinchillaOP
My builds always work the second time I build them. It's like when the cache is used, the env vars are not set
It's killing my CI/CD flow lol
SharpieMaster
So when you go to this page you have all your variables that you want?
Giant ChinchillaOP
Yes, for all 3 of my apps.
All 3 have this issue also
SharpieMaster
When you build, do you use build cache?
Giant ChinchillaOP
locally or in Vercel?
SharpieMaster
Vercel
Giant ChinchillaOP
Yes
SharpieMaster
there’s like a checkbox
Try re building without it checked
Giant ChinchillaOP
that's what works
SharpieMaster
?
Giant ChinchillaOP
I mentioned I had to rebuild my projects for them to work
That's what I do. Rebuild them with build cache disabled
SharpieMaster
Oh, are you having issues with the automatic build when pushing changes with git
Giant ChinchillaOP
yes
those builds, always fail
SharpieMaster
Idk about that, there might be a setting somewhere
Giant ChinchillaOP
?
SharpieMaster
On vercel
Giant ChinchillaOP
Hmmm I'll keep poking around. Thank you!