Refreshing production /subpage does not work

Hello, I am new to using render:

I have a create-react-app deployed as a static-site on render. All looks fine and works perfectly (thanks for the amazing job render-team!). But when I try to refresh the browser while being at any subpage it
shows a blank page with “Not Found” message on screen.

This is the only log on the production console: “GET https://www.crix.design/whatandwithwho 404”.

On Development all works perfectly and as expected.

So, my question is: Is there any setting I can modify in render.com to fix that? Or is it more likely to be a webpack issue in my project?

Thanks a lot!
carles

1 Like

Hey Carles,

This is a symptom of deploying your CRA to production :slightly_smiling_face:

https://render.com/docs/deploy-create-react-app#using-client-side-routing should get you sorted here,

John B
Render Support, UTC+1 :uk:

2 Likes

Thank you so much John B!

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