Skip to content

Hash Router to serve static sites using GH Pages

Shubham Korde edited this page May 29, 2021 · 1 revision

Previously we had been using React Router for routing the pages. However, due to some reasons the routing was improper leading to 404 errors. This issue was solved in the PR #21.

This is a PR for #14 and it does the following:

This is a well know problem in and this approach for fixing it is based on the docs, here

Also, it is important to specify the "homepage": " " in package.json to our base website url before running the command npm run deploy

More details on this problem can be found on StackOverflow, webpack approach and a very well explained reason doc.

Clone this wiki locally