✨ Add env vars parser to avoid leaking secrets
This commit is contained in:
@@ -131,6 +131,11 @@ const WidgetMixin = {
|
||||
});
|
||||
});
|
||||
},
|
||||
/* Check if a value is an environment variable, return its value if so. */
|
||||
parseAsEnvVar(str) {
|
||||
if (str.includes('VUE_APP_')) return process.env[str];
|
||||
return str;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user