# Environment Variables are not available during build

**URL:** <https://community.kinsta.com/t/environment-variables-are-not-available-during-build/3327>\
**Category:** Application Support\
**Created:** [April 19, 2024, 7:01pm UTC](https://community.kinsta.com/t/environment-variables-are-not-available-during-build/3327 "2024-04-19T19:01:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gofreddo](https://avatars.discourse-cdn.com/v4/letter/g/5fc32e/32.png) [@gofreddo](https://community.kinsta.com/u/gofreddo)\
**Post date:** [April 19, 2024, 7:01pm UTC](https://community.kinsta.com/t/environment-variables-are-not-available-during-build/3327/1 "2024-04-19T19:01:42Z")

</div>

I have my environmental variables set to be available at Build and runtime, but when I log them during build, they are not set. They are only set at runtime.

---

<div class="post-metadata">

**Author:** ![gofreddo](https://avatars.discourse-cdn.com/v4/letter/g/5fc32e/32.png) [@gofreddo](https://community.kinsta.com/u/gofreddo)\
**Post date:** [April 19, 2024, 8:53pm UTC](https://community.kinsta.com/t/environment-variables-are-not-available-during-build/3327/2 "2024-04-19T20:53:32Z")

</div>

My app is deployed as a docker container. Is there something I need to do to pass the vars to the container?

---

<div class="post-metadata">

**Author:** ![jackirish](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jackirish/32/1361_2.png) [@jackirish](https://community.kinsta.com/u/jackirish)\
**Post date:** [April 19, 2024, 10:02pm UTC](https://community.kinsta.com/t/environment-variables-are-not-available-during-build/3327/3 "2024-04-19T22:02:23Z")

</div>

Hi @gofreddo ! 👋 Welcome to the Kinsta Community.

Environment variables that are marked to be available at build should indeed be available at build. I was able to run an app with environment vars available at build on my end. Are you running into a specific error when deploying your application?

If you contact our team through our chat support as well, we can discuss app details and provide more direct support as well.
