You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than deploying to a cloud vendor website, I tried to deploy to github pages. Here are my changes to do so with a live version accessible here
I had to remove the publicPath in webpack.config.prod.js as github pages serves the site in a subdomain.
Almost everything works as intended except for the rooting (I think) behaving weirdly.
As you can see here :
the app lands on the 404 page instead of the default one
navigation replaces the subdomain instead of appending the route path to it.
I know React-slingshot is meant to be served from the website root but any help would be appreciated.
The 404 page is due to gh-pages not the slingshot. See facebook/create-react-app#162 (comment) for notes on SPA in GitHub pages. This also causes issues with browserHistory from react-router which we have enable by default.
Thanks you for your quick answer !
Your link pointed me in the right direction to spa-github-pages repository.
Everything is explained in his readme usage section.
Rather than deploying to a cloud vendor website, I tried to deploy to github pages.
Here are my changes to do so with a live version accessible here
I had to remove the publicPath in webpack.config.prod.js as github pages serves the site in a subdomain.
Almost everything works as intended except for the rooting (I think) behaving weirdly.
As you can see here :
I know React-slingshot is meant to be served from the website root but any help would be appreciated.
Could be a similar issue to #214
The text was updated successfully, but these errors were encountered: