Environment detection in v0.15
-
How to detect development or production environment within js?
In previous version I used DEV:if (DEV) {
Vue.axios.defaults.baseURL = ‘https://www.mydomain.com:18843’
}
else {
Vue.axios.defaults.baseURL = ‘https://www.mydomain.com:18443’
} -
fairly sure it’s
if (process.env.DEV) {}