So there seem to be a lot of solutions to this problem if you’re deploying your react app using a static-site. But I’m deploying my app using a flask-python server using the webservice. So there’s no options to create rewrites or redirects. So how do I make it so that my react-router works when I manually enter an address instead of returning 404 not found.
Hi,
I did a quick search for “Flask React Routing”, and there seems to be a “catch-all” approach in Flask routing that can achieve the rewrite-like behavior. For example:
- Stack Overflow - Flask and React routing
- Flask & Vue Tutorial (even though it’s based on view the routing has the same concept).
Hope that helps
Alan
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.