gitname / react-gh-pages

Deploying a React App (created using create-react-app) to GitHub Pages
6.47k stars 913 forks source link

Routing works locally, but not on GitHub Pages #176

Closed JoaoGuimaraes22 closed 4 months ago

JoaoGuimaraes22 commented 7 months ago

Category

Which of these applies to you? (Select all that apply)

Step

Which step of the tutorial do you want someone to help you with? (Select one)

Links

Tell us where we can find your code and your GitHub Pages site:

Everything else

Blank Page. Works perfect locally. Using React Router. Tried using HashRouter, still blank. Open to anything.

...

gitname commented 4 months ago

Hi @JoaoGuimaraes22, here are some options: https://github.com/gitname/react-gh-pages/issues/104#issuecomment-1203373499

gitname commented 4 months ago

Thanks for including the links in the issue description. I visited the deployed site and was able to navigate to different routes (looks like you are using hash-based routes). Since it looks to me like you got routing working and since routing is not part of the tutorial, I will close this issue.