Hey there everyone,
I recently completed building a Vue application, and everything seems to be functioning as expected when I run npm run build
. However, upon inspecting the app using Google Chrome developer tools, I came across an interesting observation.
49650: function(e, t, r) {
var i = r(74971);
function a(e, t) {
if ("string" === typeof e) {
if (["legacy", "regional"].indexOf(e.toLowerCase()) >= 0)
return e.toLowerCase();
throw i.util.error(new Error, t)
}
}
// Other code snippets here...
},
The functionality of the app is intact, but something caught my attention - the environment variables like VUE_APP_URL_API are displayed in clear text rather than being obfuscated.
Is there a way to address this concern? Any assistance on how to secure the variable values would be greatly appreciated.
I'm hoping for a solution where the values of each variable are properly encrypted or hidden from plain sight.