RENDER_EXTERNAL_ROUTES not working properly

I have set up the RENDER_EXTERNAL_ROUTES with all my page routes, but it is not working properly. [Its a react.app and I am using react router ]

If I type the URL “example.onrender.com/developer” directly, it works normally, and I am redirected to the page. However, if I type “example.onrender.com/gallery”, it leads to my custom error page that I created. Why is only the gallery not working? How to fix it?

Hey,

I have never seen the environment variable “RENDER_EXTERNAL_ROUTES”. Is this something you’ve customized for your code?

The symptoms you’re describing makes me think that you haven’t set a proper client-side routing: https://render.com/docs/deploy-create-react-app#using-client-side-routing. You should make sure that all requests done to your app routed through your client-side router/

Regards.
Jérémy, Render Support

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