Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ionic vue use .env

// First you need to add .env to your ROOT directory
// You write your Enviroment variables insife .env
// It is as simple as :
VUE_APP_FOO="bar"

// Then globaly in any vue file

console.log(process.env.VUE_APP_FOO)
// Result
// bar
 
PREVIOUS NEXT
Tagged: #ionic #vue
ADD COMMENT
Topic
Name
1+3 =