React App Routes not working after Deployed

Hello everyone,

I developed a React App for my client and deployed it on Render as a Static WebApp with a custom domain. However, during testing today, the first page worked well, but the other pages showed as “Not Found” on a blank white page. I’ve already added a staticwebapp.config.json file to it. How can I resolve this issue?

Thank you.

1 Like

Hi,

I’ve replied to the tickets you also opened. I’ll repeat the response here:

It sounds like you’re describing client-side routing, e.g. React Router. That requires a rewrite, as noted in the docs here: https://docs.render.com/deploy-create-react-app#using-client-side-routing

Alan

1 Like

Thanks Alan

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