just deploy a recat stact app on digital ocean. BT when I go toto a route like myapp.com/something and tried to refresh the page it shows error. The app runs properly on localhost. How to fix thi?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $200 of credit to try our products over 60 days!
On top of what has already been mentioned you can double-check your routing and make sure the paths are not related to your localhost configuration. I’ve had a similar issue in the past which was an easy and quick fix.
Did you deploy your React app as a static site or as a web service?
Also is your project open-source? If so would you mind sharing a link to your GitHub project so I could try deploying this as well to further troubleshoot the issue?
I personally usually use the following steps when deploying React apps to the DigitalOcean App Platform: