question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

support for vue env variables

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nklaymancommented, Nov 1, 2020

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.

0reactions
no-response[bot]commented, Nov 8, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found