I try to use process.env.process.env.VUE_APP_SERVER_URL
in my vue project. But I got the following error.
Uncaught ReferenceError: process is not defined
It uses webpack and is run via the npm start
command.
Once you know the solution, please feel free to contact me.
You can add the following code in
webpack.config.js
.