Github Pages having trouble deploying a create-react-app project using react-router-dowm
Closed this issue · 0 comments
weilyl commented
Tried: https://create-react-app.dev/docs/deployment/
But it merged gh-pages with main, overriding all the former files in main.
Next, looked at:
https://itnext.io/so-you-want-to-host-your-single-age-react-app-on-github-pages-a826ab01e48
https://medium.com/@bennirus/deploying-a-create-react-app-with-routing-to-github-pages-f386b6ce84c2
facebook/create-react-app#1765
https://stackoverflow.com/questions/58228017/react-router-v4-cant-load-page-on-github-pages
But it turns out I didn't need to. I tried to deploy again after reverting the CRA changes, made sure the GH pages site was building from the gh-pages branch (/root) and https://weilyl.github.io/TTNY2020-front/ now shows what I see in my localhost:3000.