In AWS i have an alb setup which will reroute /frontend/* to the frontend target group.
now when iam setting up homepage in package json “/frontend/” it works with development mode.
but when doing it with the production build it is not working.
It was unable to load js css files as the path got messed up in index.html.
When testing on
create react app it was the same problem it doesn’t load the files as the path is incorrect.
When setting the homepage what precautions to take in package.json.
I tried with homepage but it gives
The stylesheet http://localhost:3000/frontend/static/css/main.f855e6bc.css was not loaded because its MIME type, “text/html”, is not “text/css”.
My requirement is that i want my react app to show up at alb DNS/frontend/*