api - ReactJS - App Issues after Deployment -


i started first website reactjs.

question 1 on localhost run backend on port=3001 , app on port=3000. using react-scripts build created build frontend, looks "proxy": "http://localhost:3001" not taken under consideration when creating build.

now after deployment on server api calls returning 404 never go port 3001.

how can pass proxy build?

question 2 on local machine run react-scripts start can directly access http://localhost:3000/login, on server have start http://example.com/ , use navigation login.

how can better handle urls?

thank you, vanessa


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -