I deployed a react js application to s3, and put behind AWS application load balancer. My react app is using template create by create-react-app
library, build using command react-scripts build
I set the rule as if any request to /react-app*
to render my application,
It is able to load index page, however, all js, and assets cannot be loaded due to ReactJS inject js script when it build as static resource,
What ReactJS build output:
<script src="/static/js/10.d87ac982.chunk.js"></script>
But I want this
<script src="/react-app/static/js/10.d87ac982.chunk.js"></script>