Environment settings changes
See original GitHub issueHi Karol,
Basically this is what I do I build the Vue project that emits the app.js, manifest.js and vendor.js files. I refer these files in a different project (I have used Vue Custom Element). In my Vue Project i have an api url which also gets bundled when you build the Vue js file.
module.exports = {
NODE_ENV: '"production"',
BASE_URL : '"https://localhost/VueAPI/"'
}
For my development server it is fine. I have also seen the concept of dev and prod.env files. But still i dont think so that will help me. Because we are deploying the built files using octopus. So based upon the deployment server we have to change the config url. How can i achieve this. If i change the config url I need to rebuild and then get the files and once again i have to update the files in the project where i have used right.
Issue Analytics
- State:
- Created 5 years ago
- Comments:29 (13 by maintainers)
Top Results From Across the Web
Create and Modify Environment Variables on Windows
Create and Modify Environment Variables on Windows · On the Windows taskbar, right-click the Windows icon and select System. · In the Settings...
Read more >How to change environment variables on Windows 10
Open the Start Search, type in “env”, and choose “Edit the system environment variables”: Screenshot of Start Search · Click the “Environment ......
Read more >How to Edit Environment Variables on Windows 10 or 11
To configure your environment variables, click the Start button, then type “environment properties” into the search bar and hit Enter. In the ...
Read more >How to set the path and environment variables in Windows
In the Environment Variables window (pictured below), highlight the Path variable in the System variables section and click the Edit button. Add ...
Read more >How do I set or change the PATH system variable? - Java
Click Environment Variables. In the section System Variables find the PATH environment variable and select it. Click Edit. If the PATH environment variable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have done this Karol. I created a variable in env.js file like the below. And i am replacing this variable in octopus based upon the deployment server. There is a file substitution variable feature in octopus. With that i am able to replace.
BASE_URL : '"#{WidgetApiUrl}"'
😃
Thanks a lot Karol for answering my queries with so much patience 😃