React Router on a WebService

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:

Hope that helps

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.