Auth0 Home Blog Docs

Auth0 can't get page from react example project

Hi, I’m using the react example page provided by Auth0 to build my own project. Everything is working on development env, but once I ran “react run build” and generated build, the profile auth0 link toke me to 404 instead, it links to ‘/profile?..’

Any suggestion on fix this problem?

Fixed.

Solution: build a catch all ‘*’ route in the backend, and serve “index.html” on this route.