Hi, I am having an issue with my project.
In localhost is working ok, but in render is impossible to see it. The landing page is k, but when I want to get the Pokemons, it doesn’t show them.
And if I refresh the page, it says: Not Found.
Which can be the problem and how can I fix it?
The URL is: https://pokemonfront-17cp.onrender.com/
Hey Nico,
You’ll need to make sure to set a rewrite rule that will route all requests to your index file: https://render.com/docs/deploy-create-react-app#using-client-side-routing
This is quite an essential thing to do while using client-side routing as yoursite.com/path should be dispatched by your client routing package.
Regards.
Jérémy, Render Support
Hi, I just added the rule. And now I don’t see the Not Found message, but nothing is rendering.
Should I also change something in my code?
Thanks for your answer.
Hey Nico,
It should be a “Rewrite”, not a “Redirect” rule.
Regards.
Jérémy, Render Support
system
Closed
March 4, 2023, 2:15pm
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.