http-server (Docker template) doing "proxy" for React application

0

In a simple application made with React created with create-react-app , using Docker template of some link ( Apache , for example), it is common to use a rule in Rewrite with /* passing to /static/ forcing to go to index.html)?

I've seen some projects using a Docker image with NodeJs and doing middleware / Reverse Proxy for the application (be it React, Angular (js) , etc), but in a context where you do not need to do any kind of IO, transaction, validation, etc. to return static content, what would be good practice?

Perhaps one of the recommendations is:

"já que é um site estático, pra que usar CRA?"

I think this is a valid question, but I would like to understand the specific scenario.

It is also worth noting that the hypothesis causes exposure or opens a breach in security, but considers it to be just a static content application (a landing page approaching a service provision, for example).

    
asked by anonymous 24.10.2018 / 15:51

0 answers