Hello my problem was line in the .gitnore
# env files (can opt-in for committing if needed)
.env*
I was pushing the code to the github, where I was building production version in github-actions, but environment variables were accessible only on the local mashine.