[Vuejs]-Vue environmental variables return empty object

0👍

In order to load the configuration from your .env file you need to first install the dotenv dependency, and call require("dotenv").config() before calling your variable. This will load the variables and make them available using process.env.YOUR_VARIABLES

Leave a comment