0

I finished a Frontenmentor challenge but couldn't find the reason why the Site crashes when I try to refresh in the /details/:name page. I thought at first the reson could be maybe the spacings in the path name so i fixed those but the Problem isn't solved. In Localhost if i refresh the page there is no error but in the live server in netlify i become the ctash error.

here is the project: https://rest-kasamt.netlify.app/ and here my code https://github.com/kasamtDE/React-Rest-Countries/tree/main/src

Kaan
  • 17
  • 4

1 Answers1

1

You need to add the _redirect file to public folder.

_redirect

/* /index.html 200

This means redirects all incoming requests to index.html.

Catch all redirect for create-react-app in netlify

Mert
  • 113
  • 1
  • 2
  • 5