[Vuejs]-Vue.js uses old values of environment variables after I change them

0👍

I just had this same problem and it was because the vue server was already running unknowingly to me so when I ran vue-cli-service serve it wasn’t updating the env variables that appeared in my browser. To fix this I found the process running on port 8080, the default port for vue and killed it. First run lsof i:8080 and kill the node processes using kill {PID}.

Leave a comment