fix: invalid backend API URL

This commit is contained in:
Thomas Dedek
2021-04-27 13:27:34 +02:00
parent 111c706639
commit b5b97027de

View File

@@ -4,9 +4,9 @@ import 'bootstrap/dist/css/bootstrap.css';
import axios from 'axios'; import axios from 'axios';
axios.defaults.baseURL = window.location.host.includes('accounts.ecogood.org') axios.defaults.baseURL = process.env.NODE_ENV === 'development'
? '/api' ? '//localhost:8090'
: '//localhost:8090'; : '/api';
import Vue from 'vue'; import Vue from 'vue';
import AppRoot from './AppRoot'; import AppRoot from './AppRoot';