EDIT:
I already have environment variables configured in this vue-cli . project. But I can't use them in a file inside public.
Basically, what i want is give the same power that the index file already have to another file inside public folder. Access environment variables during build.
I have a .js file in my app that I want to be able to use an environment variable inside. but I didn't find a method of how to add static files to a public folder of the project and Vue still processes these files.
my file:
var iframeOrigin = 'https://example.com';
var iframeProjectFolder = `${iframeOrigin}/chatbot-aliansce-web`;
var iframeEndPoint = `${iframeProjectFolder}/index.html`;
// var iframeOrigin = 'http://localhost:8080';
// var iframeProjectFolder = `${iframeOrigin}`;
// var iframeEndPoint = `${iframeProjectFolder}/index.html`;
I don't want to modify him every time I deploy in production.