My application is an Electron app developed with Vue.js, and I am looking to create both a production
build and a development
build.
My goal is to utilize the NODE_ENV
environment variable to adjust the behavior of the application once it is packaged.
The main reason for this setup is for testing auto updates. I want to have a packaged version of the app that connects to my development endpoints instead of our production endpoints to prevent any potential issues with our users.
I am currently facing difficulties in setting the NODE_ENV variable to development
while using electron builder with the vue-cli-electron-builder to build the packaged application.
Any help would be greatly appreciated. Thanks!