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:
parent
b58c5feb54
commit
fe595b35d6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue