Daniel Chýlek
11/03/2021, 12:56 PM/api/profile
requests to the root directory instead of the folder it's in.Jiri Zajic
11/03/2021, 5:52 PMJiri Zajic
11/03/2021, 5:53 PMPUBLIC_URL=/folder/another-folder yarn build
.Jiri Zajic
11/03/2021, 5:54 PMDaniel Chýlek
11/04/2021, 8:08 PMDaniel Chýlek
11/04/2021, 8:31 PMJiri Zajic
11/04/2021, 8:37 PMapi/profile
requests to the root directory: When instantiating the backend, make sure to pass the hostname
param, like this:Jiri Zajic
11/04/2021, 8:37 PMconst backend = tigerFactory({
hostname: '<https://interactive-examples-proxy.herokuapp.com/>',
}).withAuthentication(...);
Jiri Zajic
11/04/2021, 8:38 PMbuild-with-explicit-hostname
in package.json to see the effect of REACT_APP_SET_HOSTNAME
env variable. I believe these are what you are looking for.Jiri Zajic
11/04/2021, 8:41 PM{ hostname: '<https://my-domain.com>' }
config when instantiating the tigerFactory should be helpful, as well as REACT_APP_SET_HOSTNAME
to make it apply when creating a production build. Please let me know if it helps!Daniel Chýlek
11/04/2021, 8:47 PMREACT_APP_SET_HOSTNAME
in the code documentation, I believe that was the missing piece.Jiri Zajic
11/04/2021, 8:50 PMDaniel Chýlek
11/04/2021, 8:57 PMbuild-with-explicit-hostname
earlier, but it looks like I needed both that and the hostname
parameter in tigerFactory
. It's sending requests for the correct host now, thanks!Jiri Zajic
11/04/2021, 9:29 PM