Ways4eu WordPress.com Blog

SPA View of ways4eu.wordpress.com

category: Hot-react

How to handle backend API request for Create-react-app build and ran using “serve-s build”? via /r/reactjs

on Mon May 11 2020

I have create-react-app bootstrapped application which I build and then serve it to the static server using serve-s build. The React app is running on http://locahost:3000. This app talks to my backend REST API(using java) which is running on http://locahost:8080. Inside my React application, I have set axios.default.baseURL=http://localhost:8085/api. Everything is fine until the application is […]

Newer posts →