Fix 404 config.json issue

When we reload the page on subroute, the GET on config.json return a 404.
Use homepage from package.json

Change-Id: I506fa8b6bc5034ef1fa7171229301f729adf9da7
This commit is contained in:
Guillaume Vincent 2019-01-14 16:24:31 +01:00
parent b58c5feb54
commit fe595b35d6
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ export function setConfig(config) {
export function getConfig() {
return dispatch => {
return axios.get("config.json").then(response => {
return axios.get(`${process.env.PUBLIC_URL}/config.json`).then(response => {
const config = response.data;
dispatch(setConfig(config));
return response;