From 5052e2b60e4658430c02d13e078f516737cf220f Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 14 Jul 2020 22:01:01 +0200 Subject: [PATCH] fix axios env api path --- src/api/rest-axios.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: {