How to use machine environment variables #10850
Unanswered
nicostubi
asked this question in
Help/Questions
Replies: 1 comment
-
@nicostubi What bundler do you use (is it vite)? If it's webpack - If you are using vite, you should use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm new to vue and I can't get environment variables to work. With this code in my main.js :
the NODE_ENV works but the other one is undefined. When I printenv from my server, VUE_APP_EARTHO_CLIENT_ID is well defined. Should I do something else?
I have reproduced the problem locally: a .env file is working fine, but when putting an environment variable on my OS it does not work anymore.
Beta Was this translation helpful? Give feedback.
All reactions