Page not found create-react-app

I am facing ‘Page not found’ problem.

My website name: illustrious-sfogliatella-39e3c5.netlify.app/

The app was created with create-react-app and is using API endpoint.

netlify.toml contains:
[[redirects]]
from = “/*”
to = “/index.html”
status = 200

and to redirect to API:
[[redirects]]
from = “/videos”
to = “https://explorations-stream.vercel.app
status = 200

What can be a problem here?

Hello @reytiartur, thanks for the post and welcome.

Kindly use an _redirects file instead inside the /public folder like /public/_redirects.
After the code should look like the below.

/* /index.html 200
https://yoursite.com/videos https://explorations-stream.vercel.app 301!

https://yoursite.com/videos should be the the domain you want to redirect from.

Let me know the outcome.

Thanks.

Hello. Thank you for your answer.

If I understood right - I’ve changed https://yoursite.com/videos to the hard-coded fetch call’s address.
Still have same problem.

Hi @reytiartur, thanks for the feedback.
Kindly share the repository of your site if possible for me to help with the debugging.

Thanks.

Here is the link to repo:

The site was deployed from /client folder.

Hello @reytiartur, thanks for sharing the information.
Kindly make sure your build settings are similar to the image below

Your site should display as expected after you redeploy.

Let me know the outcome.

Thanks.

1 Like

Thank you. It did help in a way, but seems like I still can’t redirect my fetch


calls to new endpoint, right?

Hi @reytiartur, you are using localhost for Netlify domain redirects. localhost cannot be used for Netlify domain redirects.

For more information about domain redirects, kindly check the link below.

Thanks.