support for vue env variables
See original GitHub issueDescribe the bug A clear and concise description of what the bug is.
env variables in .env.stage and .env.production can be used correctly with this builder.
The way I use the variables are process.env.VUE_APP_XXX
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- custom config for vcp-electron-builder:
- (if possible) link to your repo:
- terminal output from running
vue info
:
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Modes and Environment Variables - Vue CLI
When running vue-cli-service , environment variables are loaded from all corresponding files. If they don't contain a NODE_ENV variable, ...
Read more >Using Environment Variables with Vue.js - Stack Overflow
The variables will automatically be accessible under process.env.variableName in your project. Loaded variables are also available to all vue- ...
Read more >How to Use Environment Variables in Vue.js - Medium
The environment variables can be accessed anywhere in your Vue application through the global process.env object. Here I have added two variables on...
Read more >How to Use .env Environment Variables in Vue | HackerNoon
.env files are a great way to store data about your application by the environment, and they're pretty straightforward with a tool like...
Read more >Vue 3 + Vite - Access Environment Variables from dotenv (.env)
This is a quick tutorial on how to create and access environment variables in Vue 3 with a dotenv ( .env ) file....
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 Free
Top 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
Sensitive variables should not be shipped. Anyone could easily extract them if they install the app. They should only be used on a server that the app connects to.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don’t have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.