Backend-Adresse aus .env file beziehen
This commit is contained in:
@@ -2,7 +2,7 @@ import axios from 'axios';
|
||||
import store from './store';
|
||||
import router from './router';
|
||||
|
||||
axios.defaults.baseURL = 'http://localhost:3000/api';
|
||||
axios.defaults.baseURL = process.env.VUE_APP_BACKEND_URL;
|
||||
|
||||
axios.interceptors.request.use(
|
||||
config => {
|
||||
|
||||
Reference in New Issue
Block a user