1

I am new to vue in general and i am trying to configure some environment variables for some projects of mine so i can do some tests with cookies but apperently i ran the simple webpack configurations when creating these projects, therefore i dont have access to the config directory to edit said variables.

I created a vue.config.js file and used the following lines:

module.exports = {
     publicPath: 'myAppName'
 }

However if i run it on development mode, or simply use npm run serve my app runs at "http://localhost:8080/myAppName" instead of simply "myAppName".

How do i correctly configure my environment variables for my projects without having to start over from scratch? I am using vueCli 3 btw.

I tried following these examples but none have worked: Using Environment Variables with Vue.js

I also have .env file and a .env.development file but i am not sure what to add to it.

0 Answers0