I have a Go based API for a React based frontend. Today I mesh everything together and serve the static react part from the “/” route of the API. This however complicates the build a bit as I first have to copy over the react solution and then build the Go part.
Would it be a better solution to have the React front end on a static page service and the API on a separate service do you think? What would be the pro and cons and I’d be very interested in how other structures similar solution.