title: ReactJS proxy URL for localhost API in PROD when bundling with Spring Boot
body: <p>I'm trying to bundle ReactJS and Spring Boot API together and build one fat jar. In every tutorial I read, I'm told to put the localhost API URL as a proxy in package.json of the React app like below.</p>
  <pre><code>&quot;proxy&quot;: &quot;http://localhost:8080&quot;
  </code></pre>
  <p>As I obviously don't have PROD deployment experience with this, is this the way to go when you are deploying in PROD? Else, please guide me in the right direction. I couldn't find the answer anywhere.</p>
  <p>Also, any cons in doing so in a medium sized project with two developers? Appreciate any input.</p>