I have a simple React app hosted in https://alejandromaselli.github.io. Also I've added the React Router module and I've configured a /signin
route. But when I access directly like this: https://alejandromaselli.github.io/signin It throws me a 404 error.
I should be noted that when I run it locally I can access the url including the /signin
route. (Such as http://localhost:3000/signin
)
I will appreciate any support.
Try using HashRouter
instead of BrowserRouter
https://reactrouter.com/web/api/HashRouter
Relevant link here