V
V
VladSotskyi2019-06-04 17:50:32
React
VladSotskyi, 2019-06-04 17:50:32

Why 404 in react app?

I did a build of the application, then I do serve -s . When you go through the routes, the application works, but it's only worth refreshing the page (ctrl + f5), it gives 404 on all pages except the main one.
I wrapped all the routes in BrowserRouter and Switch .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-06-04
@VladSotskyi

Serving apps with client side routing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question