Add env variables for frontend

This commit is contained in:
Pranav Raj Sreepuram
2019-08-18 00:44:44 +05:30
parent 4f792e242d
commit 2b6c7a4025
9 changed files with 45 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
export default {
APP_BASE_URL: '/',
PUSHER: 'test',
PUSHER: __PUSHER__,
get apiURL() {
return `${this.APP_BASE_URL}/`;
},

View File

@@ -59,7 +59,6 @@ const authIgnoreRoutes = [
const redirectUser = (to, from, next) => {
console.log(to);
// If auth ignore go to page
if (authIgnoreRoutes.indexOf(to.name) > -1) {
return next();