Backend-Adresse aus .env file beziehen

This commit is contained in:
Torsten Schulz
2024-06-15 23:29:41 +02:00
parent 61653ff407
commit 4e371f88b1
23 changed files with 568 additions and 83 deletions

View File

@@ -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 => {