Skip to content

My react project doesn't work on github pages #21836

Answered by birdcar
bastian-ger asked this question in General
Discussion options

You must be logged in to vote

Hi @bastian-ger!

It looks like you went ahead and deployed your react site to heroku, but I just wanted to follow up and let you know what was going on.

React apps work a little differently than normal GitHub Pages sites, so there are special directions within the “Create React App” documentation on how to publish them:

https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#github-pages

That documentation will walk you through how to deploy a React app to GitHub Pages, and there’s also information on that page under the heading “Notes on client-side routing” that explains the technical reason you were experiencing a routing issue. They also offe…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants