So I built web app and deployed it to DigitalOcean. When I singin or up it works just fine but when I refresh i get this message:
# This lookmeup.io page can’t be found
No webpage was found for the web address: **https://lookmeup.io/profile**
HTTP ERROR 404
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.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi there,
It seems like your app is not properly handling the
/profile
route on a hard refresh. This is a common issue with SPA sites where the routing is typically handled on the client-side by JavaScript.When you refresh the page, the server tries to resolve the
/profile
route but it can’t find it because it’s actually a client-side route, hence the 404 error.To solve this, you will need to implement a fallback route on your server that will return the
index.html
file for all requests that do not match a static file. This allows your JavaScript to load and handle the routing.For the App Platform, you can implement a catch-all route by following the steps here:
Let me know how it goes!
Best,
Bobby