Open dereklieu opened 5 years ago
See this commit for how it's used in the global nightlights work.
This is very interesting, however in our react projects we also started using browser history with push state, which is not yet compatible with gh-pages. For that we've been using surge.sh in a lot of projects. Any way to circumvent this github limitation?
Ah good point, no there's no way to circumvent github's hosting on browser history as far as I know.
This repo has some boilerplate code to deploy to gh-pages, which makes sense as a lot of our projects are deployed that way.
There is now the nifty
gh-pages
npm library that does this for you in a better interface, ie something you can drive from package.json (yarn deploy
). I recommend replacing the CI code with this.https://www.npmjs.com/package/gh-pages
cc @danielfdsilva