Closed radmilatomic closed 6 years ago
page not rendering on github pages
managed to build project, but still not correctly
Problem detected in route exact path definitions:
<PrivateRoute exact path="/" component={Home} /> <Route exact path="/login" component={LogIn} />
When hosting on gitHub, domain name is followed by repository name and then the route. The repository name causes mismatch between the gitHub pages route and route defined in code.
Problem temporarily solved by adding constant in front of the path:
<PrivateRoute exact path={PATH+"/"} component={Home} /> <Route exact path={PATH+"/login"} component={LogIn} />
PATH="" in development PATH="/Todo_tasks_list" when bundling project for github Pages
Fix error when building the app