diff --git a/src/api/rest-axios.js b/src/api/rest-axios.js index e22e581..1efa49a 100644 --- a/src/api/rest-axios.js +++ b/src/api/rest-axios.js @@ -13,10 +13,10 @@ import axios from 'axios' // let path = 'http://dev.api.gdp.fr' // let path = 'http://localhost:8984' // const -let path = 'http://' + window.location.hostname + (window.env === 'prod' ? '/api' : ':8984') +// let path = 'http://' + window.location.hostname + (window.env === 'prod' ? '/api' : ':8984') export const REST = axios.create({ - baseURL: path, + baseURL: 'http://' + window.location.hostname + (window.env === 'prod' ? '/api' : ':8984'), // withCredentials: true, crossorigin: true, headers: {