I am using react-router so I want to host in AWS Ec2. How to deploy the app and run permanently in the background or let me know if any other way
I'm a little bit new to React, but I wanna add my experience here. I deployed my CRA app on AWS EC2 using Apache.
Now done. Finally, make sure to use HashRouter rather than BrowserRouter. Because EC2 didn't allow the .htaccess file to redirect all requests to index.html, but replacing BrowserRouter with HashRouter helped me solve that issue. Hope this helps others save the time. Thanks.