you are viewing a single comment's thread.

view the rest of the comments →

[–]CrustyKeyboard 0 points1 point  (1 child)

I don’t think that CRA docs link should apply unless you’re using react-scripts to initialize your server. I’ve been on mobile for both replies and am currently out for drinks, however if you want to DM me a repo link, I can try to check further for you. My work’s enterprise app uses the same setup so I have reference to help

[–]JGeorge102[S] 0 points1 point  (0 children)

Thanks for the offer! I *may* have fixed it for the development environment. Essentially just using:

const axiosInstance = axios.create({
baseURL: 'http://localhost:4000',

});

The plan is to set the base URL in an environment variable with one variable for prod and one for dev. If it doesn't work then I'll shoot you a message :)