vue-cli-service environment variables
While you can find detailed information in the official docs, I dare to spoil the fun for you:
### 1. All app variables are pulled in if they are prefixed with ```VUE_APP_```.
You can now access the variables in your application like this: ```process.env.APP_URL```.
### 2. All e2e variables are fetched if they are prefixed with```CYPRESS_```.
You can now access the variables in your tests like this: ```Cypress.env('APP_URL')```.
14 Dec 2020
« Back to post